aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-02-08 14:09:36 -0800
committerBen Pfaff <blp@nicira.com>2010-02-08 14:16:19 -0800
commitbd76d25d8b3b7d11c5a326e91d784ad2cdeecd45 (patch)
tree688e7370f9794e3c4189c38ff38a59937c9016e1 /lib/unicode.h
parent629cd2f17fedf8d922f61ffd13365d1f4f9b34fe (diff)
ovsdb: Add simple constraints.
Diffstat (limited to 'lib/unicode.h')
-rw-r--r--lib/unicode.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/unicode.h b/lib/unicode.h
index 0f20bdc7..b2078e6d 100644
--- a/lib/unicode.h
+++ b/lib/unicode.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009 Nicira Networks.
+ * Copyright (c) 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,8 @@
#define UNICODE_H 1
#include <stdbool.h>
+#include <stddef.h>
+#include "compiler.h"
/* Returns true if 'c' is a Unicode code point, otherwise false. */
static inline bool
@@ -50,4 +52,7 @@ uc_is_surrogate(int c)
int utf16_decode_surrogate_pair(int leading, int trailing);
+size_t utf8_length(const char *);
+char *utf8_validate(const char *, size_t *lengthp) WARN_UNUSED_RESULT;
+
#endif /* unicode.h */