diff options
author | Steve Bennett <steveb@workware.net.au> | 2013-11-10 11:04:44 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2013-11-11 08:21:50 +1000 |
commit | 3bc70127b4453539eee52fa7d9a30542d141b20a (patch) | |
tree | 30f2675026a1d76df12dbc0ca5a00c01bba487ae /jimregexp.c | |
parent | fae001d74c06a6293798d6b27db874ff46610a42 (diff) | |
download | jimtcl-3bc70127b4453539eee52fa7d9a30542d141b20a.zip jimtcl-3bc70127b4453539eee52fa7d9a30542d141b20a.tar.gz jimtcl-3bc70127b4453539eee52fa7d9a30542d141b20a.tar.bz2 |
regexp: fix utf8_setunicode -> utf8_getchars
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jimregexp.c')
-rw-r--r-- | jimregexp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jimregexp.c b/jimregexp.c index fce33d9..a8f7c1d 100644 --- a/jimregexp.c +++ b/jimregexp.c @@ -1665,10 +1665,10 @@ static void regdump(regex_t *preg) while (preg->program[s]) { int len = preg->program[s++]; int first = preg->program[s++]; - buf[utf8_setunicode(buf, first)] = 0; + buf[utf8_getchars(buf, first)] = 0; printf("%s", buf); if (len > 1) { - buf[utf8_setunicode(buf, first + len - 1)] = 0; + buf[utf8_getchars(buf, first + len - 1)] = 0; printf("-%s", buf); } } @@ -1678,7 +1678,7 @@ static void regdump(regex_t *preg) /* Literal string, where present. */ while (preg->program[s]) { - buf[utf8_setunicode(buf, preg->program[s])] = 0; + buf[utf8_getchars(buf, preg->program[s])] = 0; printf("%s", buf); s++; } @@ -1690,7 +1690,7 @@ static void regdump(regex_t *preg) if (op == END) { /* Header fields of interest. */ if (preg->regstart) { - buf[utf8_setunicode(buf, preg->regstart)] = 0; + buf[utf8_getchars(buf, preg->regstart)] = 0; printf("start '%s' ", buf); } if (preg->reganch) |