diff options
author | Damien George <damien.p.george@gmail.com> | 2013-12-30 18:23:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2013-12-30 18:23:50 +0000 |
commit | 8cc96a35e532ef999e5a3739deeb44f51a80744b (patch) | |
tree | 7169f3ad0a43d36bdc67793bd46491d081805db2 /py/misc.h | |
parent | 212c296c0b24dddd19099f9188176a14ade42d86 (diff) | |
download | micropython-8cc96a35e532ef999e5a3739deeb44f51a80744b.tar.gz micropython-8cc96a35e532ef999e5a3739deeb44f51a80744b.zip |
Put unicode functions in unicode.c, and tidy their names.
Diffstat (limited to 'py/misc.h')
-rw-r--r-- | py/misc.h | 23 |
1 files changed, 6 insertions, 17 deletions
@@ -37,24 +37,13 @@ int m_get_total_bytes_allocated(void); typedef int unichar; // TODO -unichar g_utf8_get_char(const char *s); -char *g_utf8_next_char(const char *s); +unichar utf8_get_char(const char *s); +char *utf8_next_char(const char *s); -bool g_unichar_isspace(unichar c); -bool g_unichar_isalpha(unichar c); -bool g_unichar_isprint(unichar c); -bool g_unichar_isdigit(unichar c); - -//char *g_strdup(const char *s); - -/** blob ********************************************************/ - -/* -unsigned short decode_le16(byte *buf); -unsigned int decode_le32(byte *buf); -void encode_le16(byte *buf, unsigned short i); -void encode_le32(byte *buf, unsigned int i); -*/ +bool unichar_isspace(unichar c); +bool unichar_isalpha(unichar c); +bool unichar_isprint(unichar c); +bool unichar_isdigit(unichar c); /** string ******************************************************/ |