Changeset 08e103d4 in mainline for boot/generic/include/str.h


Ignore:
Timestamp:
2019-02-05T18:26:05Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
1d2f85e
Parents:
d066259
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
Message:

Use clearer naming for string length functions

This and the following commit change the names of functions, as well as
their documentation, to use unambiguous terms "bytes" and "code points"
instead of ambiguous terms "size", "length", and "characters".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/include/str.h

    rd066259 r08e103d4  
    4848extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
    4949
    50 extern size_t str_size(const char *str);
    51 extern size_t str_lsize(const char *str, size_t max_len);
    52 extern size_t str_length(const char *str);
     50extern size_t str_bytes(const char *str);
     51extern size_t str_lbytes(const char *str, size_t max_len);
     52extern size_t str_code_points(const char *str);
    5353
    5454extern bool ascii_check(wchar_t ch);
Note: See TracChangeset for help on using the changeset viewer.