diff options
author | Patrick Pelissier <Patrick.Pelissier@gmail.com> | 2023-06-03 01:55:44 +0300 |
---|---|---|
committer | Patrick Pelissier <Patrick.Pelissier@gmail.com> | 2023-06-03 01:59:34 +0300 |
commit | ecfa4a9152d161358517c83abccfdcdd6b110220 (patch) | |
tree | 14b624790d8483547cdb71077dffb92d9a45810a /README.md | |
parent | dafe4bcec54087131e90fea064d84681fb7fe6ce (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.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |