Lines Matching defs:mbs
794 count_cols (const char *mbs)
798 int remaining = strlen(mbs);
802 while (*mbs != '\0')
804 bytes = mbtowc (&wc, mbs, remaining);
805 assert (bytes != 0); /* Only happens when *mbs == '\0' */
811 mbs += bytes;
820 cols_to_bytes (const char *mbs, const int cols, int *ncols)
825 mbi_init (iter, mbs, strlen(mbs));
844 # define count_cols(mbs) ((int)(strlen(mbs)))
845 # define cols_to_bytes(mbs, cols, *ncols) do { \