class Fox::FXStringDict
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_FXStringDict(int argc, VALUE *argv, VALUE self) { FXStringDict *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXStringDict *)new_FXStringDict(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; }
Public Instance Methods
data(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXStringDict_data(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict const *","data", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); arg2 = NUM2UINT(argv[0]); result = (FXchar *)((FXStringDict const *)arg1)->data(arg2); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
find(ky) → FXchar const *
click to toggle source
Find an element in the class.
SWIGINTERN VALUE _wrap_FXStringDict_find(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXchar *arg2 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict const *","find", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); result = (FXchar *)((FXStringDict const *)arg1)->find((FXchar const *)arg2); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
insert(ky, str, mrk=False) → FXchar const *
click to toggle source
Insert one or more new elements in the FXStringDict
.
SWIGINTERN VALUE _wrap_FXStringDict_insert(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; bool arg4 = (bool) false ; void *argp1 = 0 ; int res1 = 0 ; bool val4 ; int ecode4 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict *","insert", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","insert", 4, argv[2] )); } arg4 = static_cast< bool >(val4); } result = (FXchar *)(arg1)->insert((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
load(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXStringDict_load(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict *","load", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXStringDict_load(arg1,*arg2); return Qnil; fail: return Qnil; }
remove(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXStringDict_remove(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXchar *arg2 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict *","remove", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); result = (FXchar *)(arg1)->remove((FXchar const *)arg2); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
replace(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXStringDict_replace(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; bool arg4 = (bool) false ; void *argp1 = 0 ; int res1 = 0 ; bool val4 ; int ecode4 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict *","replace", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); if (argc > 2) { ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","replace", 4, argv[2] )); } arg4 = static_cast< bool >(val4); } result = (FXchar *)(arg1)->replace((FXchar const *)arg2,(FXchar const *)arg3,arg4); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }
save(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXStringDict_save(int argc, VALUE *argv, VALUE self) { FXStringDict *arg1 = (FXStringDict *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStringDict, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStringDict const *","save", 1, self )); } arg1 = reinterpret_cast< FXStringDict * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXStringDict_save((FXStringDict const *)arg1,*arg2); return Qnil; fail: return Qnil; }