Subversion Repositories HelenOS

Rev

Rev 4199 | Rev 4213 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4199 Rev 4200
Line 47... Line 47...
47
{
47
{
48
    index_t index = 0;
48
    index_t index = 0;
49
    index_t chars = 0;
49
    index_t chars = 0;
50
   
50
   
51
    while (index < size) {
51
    while (index < size) {
52
        putchar(utf8_decode(str, &index, size));
52
        putchar(chr_decode(str, &index, size));
53
        chars++;
53
        chars++;
54
    }
54
    }
55
   
55
   
56
    return chars;
56
    return chars;
57
}
57
}
Line 72... Line 72...
72
{
72
{
73
    index_t index = 0;
73
    index_t index = 0;
74
    index_t chars = 0;
74
    index_t chars = 0;
75
    wchar_t uc;
75
    wchar_t uc;
76
   
76
   
77
    while ((uc = utf8_decode(str, &index, UTF8_NO_LIMIT)) != 0) {
77
    while ((uc = chr_decode(str, &index, UTF8_NO_LIMIT)) != 0) {
78
        putchar(uc);
78
        putchar(uc);
79
        chars++;
79
        chars++;
80
    }
80
    }
81
   
81
   
82
    return chars;
82
    return chars;