module Itex2MML
Public Class Methods
itex2MML_filter(*args)
click to toggle source
SWIGINTERN VALUE _wrap_itex2MML_filter(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; size_t arg2 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; size_t val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","itex2MML_filter", 1, argv[0] )); } arg1 = (char *)(buf1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","itex2MML_filter", 2, argv[1] )); } arg2 = (size_t)(val2); result = (int)itex2MML_filter((char const *)arg1,arg2); vresult = SWIG_From_int((int)(result)); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; }
itex2MML_html_filter(*args)
click to toggle source
SWIGINTERN VALUE _wrap_itex2MML_html_filter(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; size_t arg2 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; size_t val2 ; int ecode2 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","itex2MML_html_filter", 1, argv[0] )); } arg1 = (char *)(buf1); ecode2 = SWIG_AsVal_size_t(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","itex2MML_html_filter", 2, argv[1] )); } arg2 = (size_t)(val2); result = (int)itex2MML_html_filter((char const *)arg1,arg2); vresult = SWIG_From_int((int)(result)); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; }
itex2MML_output(*args)
click to toggle source
SWIGINTERN VALUE _wrap_itex2MML_output(int argc, VALUE *argv, VALUE self) { char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (char *)itex2MML_output(); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }