]> git.mdlowis.com Git - archive/carl.git/commitdiff
Added stubs for some rune routines
authorMike D. Lowis <mike.lowis@gentex.com>
Mon, 8 Jun 2015 19:31:03 +0000 (15:31 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Mon, 8 Jun 2015 19:31:03 +0000 (15:31 -0400)
source/libc.h
source/utf/rune.c [new file with mode: 0644]
source/utf/runetype.c [new file with mode: 0644]

index 06f5d27e059a5cf16731060829528673e6050353..ab87ee8e7a64cc5bf6ebaeac13cd00b4ce717957 100644 (file)
@@ -187,8 +187,6 @@ void refreplace(void** var, void* val);
 
 typedef uint32_t Rune;
 
-/* Single source
- *****************************************************************************/
 /**
  * Copies one Rune from r to at most UTF_MAX bytes in s.
  *
diff --git a/source/utf/rune.c b/source/utf/rune.c
new file mode 100644 (file)
index 0000000..d65083a
--- /dev/null
@@ -0,0 +1,27 @@
+#include "libc.h"
+
+int runetochar(char* s, Rune* r)
+{
+    return 0;
+}
+
+int chartorune(Rune* r, char* s)
+{
+    return 0;
+}
+
+int runelen(long r)
+{
+    return 0;
+}
+
+int runenlen(Rune* r, int num)
+{
+    return 0;
+}
+
+bool fullrune(char* s, int n)
+{
+    return false;
+}
+
diff --git a/source/utf/runetype.c b/source/utf/runetype.c
new file mode 100644 (file)
index 0000000..bfffe34
--- /dev/null
@@ -0,0 +1,58 @@
+#include "libc.h"
+
+Rune tolowerrune(Rune ch)
+{
+    return 0;
+}
+
+Rune totitlerune(Rune ch)
+{
+    return 0;
+}
+
+Rune toupperrune(Rune ch)
+{
+    return 0;
+}
+
+Rune tobaserune(Rune ch)
+{
+    return 0;
+}
+
+bool isalpharune(Rune ch)
+{
+    return false;
+}
+
+bool isbaserune(Rune ch)
+{
+    return false;
+}
+
+bool isdigitrune(Rune ch)
+{
+    return false;
+}
+
+bool islowerrune(Rune ch)
+{
+    return false;
+}
+
+bool isspacerune(Rune ch)
+{
+    return false;
+}
+
+bool istitlerune(Rune ch)
+{
+    return false;
+}
+
+bool isupperrune(Rune ch)
+{
+    return false;
+}
+
+