Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/P-p-H-d/mlib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Pelissier <Patrick.Pelissier@gmail.com>2023-06-03 01:55:44 +0300
committerPatrick Pelissier <Patrick.Pelissier@gmail.com>2023-06-03 01:59:34 +0300
commitecfa4a9152d161358517c83abccfdcdd6b110220 (patch)
tree14b624790d8483547cdb71077dffb92d9a45810a /README.md
parentdafe4bcec54087131e90fea064d84681fb7fe6ce (diff)
Add new function string_pop_u
to pop the last unicode code point of a string.
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 09f935e..63ca8d6 100644
--- a/README.md
+++ b/README.md
@@ -5718,6 +5718,13 @@ Return true if both iterators reference the same position, false otherwise.
Push the unicode code point 'u' into the string 'str'
encoding it as a variable UTF8 encoded code point.
+##### bool string\_pop\_u (string\_unicode\_t *u, string\_t str)
+
+Pop the last unicode code point from the string 'str'
+encoded as a variable UTF8 encoded code point
+and store in '*u' the popped unicode code point if 'u' is not NULL.
+It returns true in case of succes or false otherwise (no character to pop or no valid UTF8).
+
##### size\_t string\_length\_u(string\_t str)
Return the number of UTF8 encoded code point in the string.