Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2009-03-31T22:51:41Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial
Children:
ce87a8aa
Parents:
b54d2f1
Message:

Start converting string functions according to the terminology agreed upon.

File:
1 edited

Legend:

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

    rb54d2f1 re1813cf  
    8585               
    8686                while (index < size) {
    87                         wchar_t uc = utf8_decode(str, &index, size);
     87                        wchar_t uc = chr_decode(str, &index, size);
    8888
    89                         if (!utf8_encode(uc, data->dst, &data->len, data->size - 1))
     89                        if (!chr_encode(uc, data->dst, &data->len, data->size - 1))
    9090                                break;
    9191                }
     
    147147                }
    148148               
    149                 if (!utf8_encode(str[index], data->dst, &data->len, data->size - 1))
     149                if (!chr_encode(str[index], data->dst, &data->len, data->size - 1))
    150150                        break;
    151151               
Note: See TracChangeset for help on using the changeset viewer.