Ignore:
Timestamp:
2009-04-01T18:24:31Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b0b48e0
Parents:
b4c4666
Message:

str_lsize(), str_length(), wstr_length().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/printf_core.c

    rb4c4666 rf25b2819  
    255255       
    256256        /* Print leading spaces */
    257         size_t size = strlen_utf8(str);
     257        size_t size = str_length(str);
    258258        if (precision == 0)
    259259                precision = size;
     
    269269
    270270        int retval;
    271         size_t bytes = utf8_count_bytes(str, min(size, precision));
     271        size_t bytes = str_lsize(str, min(size, precision));
    272272        if ((retval = printf_putnchars_utf8(str, bytes, ps)) < 0)
    273273                return -counter;
     
    299299       
    300300        /* Print leading spaces */
    301         size_t size = strlen_utf32(str);
     301        size_t size = wstr_length(str);
    302302        if (precision == 0)
    303303                precision = size;
Note: See TracChangeset for help on using the changeset viewer.