Lines Matching refs:mbs
50 static void add_charmap_impl_fr(char *sym, char *mbs, int mbs_len, int nodups);
51 static void add_charmap_impl_to(char *sym, char *mbs, int mbs_len, int nodups);
187 * we need these sorted by mbs contents.
258 * stream (mbs encodings) to symbols. Second, we parse the "to" map,
263 add_charmap_impl(char *sym, char *mbs, int mbs_len, int nodups)
270 if (sym == NULL || mbs == NULL) {
277 add_charmap_impl_fr(sym, mbs, mbs_len, nodups);
280 add_charmap_impl_to(sym, mbs, mbs_len, nodups);
289 add_charmap_impl_fr(char *sym, char *mbs, int mbs_len, int nodups)
301 (void) memcpy(n->cm_frmbs, mbs, mbs_len);
319 * If we found the mbs, the new one is an alias,
334 add_charmap_impl_to(char *sym, char *mbs, int mbs_len, int nodups)
364 (void) memcpy(m->cm_tombs, mbs, mbs_len);
369 add_charmap(char *sym, char *mbs)
371 /* mbs[0] is the length */
372 int mbs_len = *mbs++;
374 add_charmap_impl(sym, mbs, mbs_len, 1);
383 add_charmap_range(char *ssym, char *esym, char *mbs)
395 /* mbs[0] is the length */
396 mbs_len = *mbs++;
398 (void) memcpy(tmbs, mbs, mbs_len);
432 char mbs[MB_LEN_MAX+1];
434 mbs[0] = c;
435 mbs[1] = '\0';
436 add_charmap_impl(name, mbs, 1, 0);
459 find_mbs(const char *mbs, int len)
465 (void) memcpy(srch.cm_frmbs, mbs, len);
481 find_mbs_partial(const char *mbs, int len)
487 (void) memcpy(srch.cm_frmbs, mbs, len);
495 if (cm != NULL && 0 == memcmp(cm->cm_frmbs, mbs, len))