aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElOraiby <wael.eloraiby@gmail.com>2015-05-31 20:14:19 -0400
committerElOraiby <wael.eloraiby@gmail.com>2015-05-31 20:14:19 -0400
commit64b2267a76c6a509b5a5b052907c047d4a5ceadc (patch)
tree18a3b55e13ea5aaabc31f914f466d2a4d7885932
parent198b0eef667930341321f43bdd2da283658549b2 (diff)
more formatting
-rw-r--r--README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4b9e983..c33f34c 100644
--- a/README.md
+++ b/README.md
@@ -8,17 +8,26 @@ It's worthy to note that this is far more lightweight than HarfBuzz (used by Qt/
Freetype 2 on the other hand lacks this functionality.
<U><B>Usage:</B></U>
+
One call will convert a utf8 string to a sequence of code points:
```C
-size_t get_presentation_form_b(size_t in_len, unsigned char *in_str, size_t out_len, uint32_t* out_cp);
+size_t get_presentation_form_b(size_t in_len,
+ unsigned char *in_str,
+ size_t out_len,
+ uint32_t* out_cp);
```
Where
+
`in_len`: the input utf8 string length in bytes
+
`in_str`: the input utf8 string
+
`out_len`: output code point buffer size (in bytes)
+
`out_cp`: output code point buffer
+
`return`: return the total number of code points transformed
<U><B>Details:</B></U>