Module: Itex2MML
- Defined in:
- lib/itextomml.rb,
ext/itex2MML_ruby.c
Defined Under Namespace
Class Method Summary collapse
- .itex2MML_filter(*args) ⇒ Object
- .itex2MML_html_filter(*args) ⇒ Object
- .itex2MML_output(*args) ⇒ Object
Class Method Details
.itex2MML_filter(*args) ⇒ Object
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 |
# File 'ext/itex2MML_ruby.c', line 2198
SWIGINTERN VALUE
_wrap_itex2MML_filter(int argc, VALUE *argv, VALUE self) {
char *arg1 = 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) ⇒ Object
2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'ext/itex2MML_ruby.c', line 2233
SWIGINTERN VALUE
_wrap_itex2MML_html_filter(int argc, VALUE *argv, VALUE self) {
char *arg1 = 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) ⇒ Object
2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 |
# File 'ext/itex2MML_ruby.c', line 2268
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;
}
|