sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1210B)


      1 GRAPHEME\_IS\_TITLECASE\_UTF8(3) - Library Functions Manual
      2 
      3 # NAME
      4 
      5 **grapheme\_is\_titlecase\_utf8** - check if UTF-8-encoded string is titlecase
      6 
      7 # SYNOPSIS
      8 
      9 **#include <grapheme.h>**
     10 
     11 *size\_t*  
     12 **grapheme\_is\_titlecase\_utf8**(*const char \*str*, *size\_t len*, *size\_t \*caselen*);
     13 
     14 # DESCRIPTION
     15 
     16 The
     17 **grapheme\_is\_titlecase\_utf8**()
     18 function checks if the UTF-8-encoded string
     19 *str*
     20 is titlecase and writes the length of the matching titlecase-sequence to the integer pointed to by
     21 *caselen*,
     22 unless
     23 *caselen*
     24 is set to
     25 `NULL`.
     26 
     27 If
     28 *len*
     29 is set to
     30 `SIZE_MAX`
     31 (stdint.h is already included by grapheme.h) the UTF-8-encoded string
     32 *src*
     33 is interpreted to be NUL-terminated and processing stops when a
     34 NUL-byte is encountered.
     35 
     36 For non-UTF-8 input data
     37 grapheme\_is\_titlecase(3)
     38 can be used instead.
     39 
     40 # RETURN VALUES
     41 
     42 The
     43 **grapheme\_is\_titlecase\_utf8**()
     44 function returns
     45 `true`
     46 if the UTF-8-encoded string
     47 *str*
     48 is titlecase, otherwise
     49 `false`.
     50 
     51 # SEE ALSO
     52 
     53 grapheme\_is\_titlecase(3),
     54 libgrapheme(7)
     55 
     56 # STANDARDS
     57 
     58 **grapheme\_is\_titlecase\_utf8**()
     59 is compliant with the Unicode 15.0.0 specification.
     60 
     61 # AUTHORS
     62 
     63 Laslo Hunhold ([dev@frign.de](mailto:dev@frign.de))
     64 
     65 suckless.org - 2022-10-06