Changeset 08e103d4 in mainline for uspace/lib/posix/test/stdlib.c


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
  • uspace/lib/posix/test/stdlib.c

    rd066259 r08e103d4  
    5454        PCUT_ASSERT_TRUE(p == buf);
    5555        PCUT_ASSERT_TRUE(str_lcmp(p, MKSTEMP_TEMPL,
    56             str_length(MKSTEMP_TEMPL) - 6) == 0);
     56            str_code_points(MKSTEMP_TEMPL) - 6) == 0);
    5757
    5858        file = open(p, O_CREAT | O_EXCL | O_RDWR, 0600);
     
    7676        PCUT_ASSERT_TRUE(p == buf1);
    7777        PCUT_ASSERT_TRUE(str_lcmp(p, MKSTEMP_TEMPL,
    78             str_length(MKSTEMP_TEMPL) - 6) == 0);
     78            str_code_points(MKSTEMP_TEMPL) - 6) == 0);
    7979
    8080        p = mktemp(buf2);
    8181        PCUT_ASSERT_TRUE(p == buf2);
    8282        PCUT_ASSERT_TRUE(str_lcmp(p, MKSTEMP_TEMPL,
    83             str_length(MKSTEMP_TEMPL) - 6) == 0);
     83            str_code_points(MKSTEMP_TEMPL) - 6) == 0);
    8484
    8585        PCUT_ASSERT_TRUE(str_cmp(buf1, buf2) != 0);
Note: See TracChangeset for help on using the changeset viewer.