diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-21 19:18:40 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-21 19:18:40 -0700 |
commit | e596ebd0c129913b7135210b23a50336b6f8556f (patch) | |
tree | dd301b9ef5a325a325930e773a5bf6cb891f6bf8 /include/.include/str.h | |
parent | 38eb0be234fa84ea5f7e2f0c753e1d1efd317c60 (diff) |
chore: updating naming conventions
Diffstat (limited to 'include/.include/str.h')
-rw-r--r-- | include/.include/str.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/.include/str.h b/include/.include/str.h index 85051e4..29b5e1e 100644 --- a/include/.include/str.h +++ b/include/.include/str.h @@ -25,22 +25,22 @@ enum RuneMax = 0x10FFFF, }; -int utf8·fullRune(byte *s, int n); -byte *utf8·findRune(byte *s, long i); -int utf8·charToRune(Rune *r, byte *s); -int utf8·runeToChar(byte *s, Rune *r); +int utf8·fullrune(byte *s, int n); +byte *utf8·findrune(byte *s, long i); +int utf8·chartorune(Rune *r, byte *s); +int utf8·runetochar(byte *s, Rune *r); int utf8·len(byte *s); -int utf8·runeLen(Rune r); -int utf8·isLetter(Rune r); -int utf8·isDigit(Rune r); -int utf8·isSpace(Rune r); -int utf8·isTitle(Rune r); +int utf8·runelen(Rune r); +int utf8·isletter(Rune r); +int utf8·isdigit(Rune r); +int utf8·isspace(Rune r); +int utf8·istitle(Rune r); // ------------------------------------------------------------------------- // Dynamic string functions -string str·newCap(const byte *s, vlong len, vlong cap); -string str·newLen(const byte *s, vlong len); +string str·newcap(const byte *s, vlong len, vlong cap); +string str·newlen(const byte *s, vlong len); string str·new(const byte *s); string str·newf(const byte *fmt, ...); void str·free(string s); @@ -49,10 +49,10 @@ int str·cap(const string s); string str·clear(string s); string str·grow(string s, vlong delta); string str·fit(string s); -string str·appendCount(string s, vlong len, const byte *b); +string str·appendcount(string s, vlong len, const byte *b); string str·append(string s, const byte* b); string str·appendf(string s, const byte* fmt, ...); -string str·appendByte(string s, const byte b); +string str·appendbyte(string s, const byte b); bool str·equals(const string s, const string t); int str·find(string s, const byte* substr); void str·lower(string s); |