summaryrefslogtreecommitdiff
path: root/src/utilfuns/swunicod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utilfuns/swunicod.cpp')
-rw-r--r--src/utilfuns/swunicod.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/utilfuns/swunicod.cpp b/src/utilfuns/swunicod.cpp
index f42fd86..64b40ab 100644
--- a/src/utilfuns/swunicod.cpp
+++ b/src/utilfuns/swunicod.cpp
@@ -17,6 +17,7 @@
*/
#include "swunicod.h"
+SWORD_NAMESPACE_START
unsigned char* UTF32to8 (unsigned long utf32, unsigned char * utf8) {
unsigned int i;
for (i = 0; i < 6; i++) utf8[i] = 0;
@@ -107,10 +108,6 @@ unsigned char* UTF32to8 (unsigned long utf32, unsigned char * utf8) {
return utf8;
}
-/** Converts a UTF-8 encoded 1-6 byte array into a 32-bit unsigned integer UTF-32 value
- * @param utf8 pointer to an array of 6 unsigned chars containing the UTF-8 value, starting in the utf8[0]
- * @param utf32 the UTF-32 Unicode code point value
- */
unsigned long UTF8to32 (unsigned char * utf8) {
unsigned char i = utf8[0];
@@ -137,3 +134,5 @@ unsigned long UTF8to32 (unsigned char * utf8) {
}
return utf32;
}
+
+SWORD_NAMESPACE_END