Lingua-ZH-MacChinese-Simplified
view release on metacpan or search on metacpan
Simplified.xs view on Meta::CPAN
decode(...)
ALIAS:
decodeMacChineseSimp = 1
PREINIT:
SV *src, *dst, *ref;
STRLEN srclen, mblen;
U8 *s, *e, *p;
bool has_cv = 0;
bool has_pv = 0;
STDCHAR **lb, *tb;
PPCODE:
ref = NULL;
if (0 < items && SvROK(ST(0))) {
ref = SvRV(ST(0));
if (SvTYPE(ref) == SVt_PVCV)
has_cv = TRUE;
else if (SvPOK(ref))
has_pv = TRUE;
else
croak(PkgName " 1st argument is not STRING nor CODEREF");
}
Simplified.xs view on Meta::CPAN
encodeMacChineseSimp = 1
PREINIT:
SV *src, *dst, *ref;
STRLEN srclen, retlen;
U8 *s, *e, *p, mbcbuf[3];
U16 mc, *t;
struct mbc_contra *p_contra, *cel_contra, **row_contra;
UV uv;
bool has_cv = 0;
bool has_pv = 0;
PPCODE:
ref = NULL;
if (0 < items && SvROK(ST(0))) {
ref = SvRV(ST(0));
if (SvTYPE(ref) == SVt_PVCV)
has_cv = TRUE;
else if (SvPOK(ref))
has_pv = TRUE;
else
croak(PkgName " 1st argument is not STRING nor CODEREF");
}
( run in 1.922 second using v1.01-cache-2.11-cpan-71847e10f99 )