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

// lower will force all runes in the string to be lowercase
void
string·lower(string s)
{
    byte *b, *e;
    b = s;
    e = b + string·len(s);
    while (b++ != e)
        *b = tolower(*b);
}