diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
commit | 042e43247f396a9000fead59d9bff87bf12806d6 (patch) | |
tree | e902784464cbe9ce3c5114d513b016523e7e4b29 /vendor/librune/man/u8glen.3 | |
parent | 170b8a92434233241c990c3e9432786de3262bcd (diff) |
Completely revamp the grab source code
Some of the (many) few changes are:
- Multithreading for significantly faster performance
- The -p/--predicate flag
- Byte offsets as the default
- No customizable colors (maybe this will come back later)
- Newer edition of mlib (formerly librune)
Diffstat (limited to 'vendor/librune/man/u8glen.3')
-rw-r--r-- | vendor/librune/man/u8glen.3 | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/vendor/librune/man/u8glen.3 b/vendor/librune/man/u8glen.3 deleted file mode 100644 index dfe0283..0000000 --- a/vendor/librune/man/u8glen.3 +++ /dev/null @@ -1,62 +0,0 @@ -.Dd January 15 2024 -.Dt U8GLEN 3 -.Os -.Sh NAME -.Nm u8glen -.Nd count Unicode graphemes -.Sh LIBRARY -.Lb librune -.Sh SYNOPSIS -.In gbrk.h -.Ft size_t -.Fn u8glen "const char8_t *s" "size_t n" -.Sh DESCRIPTION -The -.Fn u8glen -function returns the number of UTF-8 encoded Unicode graphemes in the -buffer -.Fa s -of length -.Fa n -bytes. -.Pp -This function assumes that -.Fa s -contains only valid UTF-8. -.Sh RETURN VALUES -The -.Fn u8glen -function returns the number of graphemes in the buffer -.Fa s . -.Sh EXAMPLES -The following call to -.Fn u8glen -will return 6 while the call to -.Fn u8len -will return 7 as a result of user-preceived characters such as -.Sq е́ -taking up multiple codepoints. -.Bd -literal -offset indent -char8_t s[] = u8\(dqПриве́т\(dq; -size_t cplen, glen; - -cplen = u8len(s, sizeof(s) - 1); -glen = u8glen(s, sizeof(s) - 1); -.Ed -.Sh SEE ALSO -.Xr u8len 3 , -.Xr u8wdth 3 , -.Xr unicode 7 , -.Xr utf\-8 7 -.Sh STANDARDS -.Rs -.%A F. Yergeau -.%D November 2003 -.%R RFC 3629 -.%T UTF-8, a transformation format of ISO 10646 -.Re -.Pp -.Lk https://www.unicode.org/versions/Unicode15.1.0/ \ -"The Unicode\(rg Standard Version 15.1.0" -.Sh AUTHORS -.An Thomas Voss Aq Mt mail@thomasvoss.com |