aboutsummaryrefslogtreecommitdiff
path: root/src/base/string/upper.c
blob: 1158a5560f5837d4203c09e2033c26f4e38912b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "internal.h"

// Upper will force all runes in the string to be uppercase.
void
string·upper(string s)
{
    byte *b, *e;
    b = s;
    e = b + string·len(s);
    while (b++ != e)
        *b = utf8·toupper(*b);
}