[hackers] [libgrapheme] Sort prototypes in grapheme.h alphabetically || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Sat, 17 Sep 2022 01:14:24 +0200 (CEST)

commit 6d0595242a027c1fcb06136e632f6d727388c4ec
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sat Sep 17 01:13:59 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sat Sep 17 01:13:59 2022 +0200

    Sort prototypes in grapheme.h alphabetically
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/grapheme.h b/grapheme.h
index 8aee431..cf7b68d 100644
--- a/grapheme.h
+++ b/grapheme.h
_AT_@ -15,8 +15,19 @@ typedef struct grapheme_internal_segmentation_state {
 
 #define GRAPHEME_INVALID_CODEPOINT UINT32_C(0xFFFD)
 
+size_t grapheme_decode_utf8(const char *, size_t, uint_least32_t *);
+size_t grapheme_encode_utf8(uint_least32_t, char *, size_t);
+
 bool grapheme_is_character_break(uint_least32_t, uint_least32_t, GRAPHEME_STATE *);
 
+bool grapheme_is_lowercase(const uint_least32_t *, size_t, size_t *);
+bool grapheme_is_uppercase(const uint_least32_t *, size_t, size_t *);
+bool grapheme_is_titlecase(const uint_least32_t *, size_t, size_t *);
+
+bool grapheme_is_lowercase_utf8(const char *, size_t, size_t *);
+bool grapheme_is_uppercase_utf8(const char *, size_t, size_t *);
+bool grapheme_is_titlecase_utf8(const char *, size_t, size_t *);
+
 size_t grapheme_next_character_break(const uint_least32_t *, size_t);
 size_t grapheme_next_line_break(const uint_least32_t *, size_t);
 size_t grapheme_next_sentence_break(const uint_least32_t *, size_t);
_AT_@ -27,23 +38,12 @@ size_t grapheme_next_line_break_utf8(const char *, size_t);
 size_t grapheme_next_sentence_break_utf8(const char *, size_t);
 size_t grapheme_next_word_break_utf8(const char *, size_t);
 
-size_t grapheme_to_uppercase(const uint_least32_t *, size_t, uint_least32_t *, size_t);
 size_t grapheme_to_lowercase(const uint_least32_t *, size_t, uint_least32_t *, size_t);
+size_t grapheme_to_uppercase(const uint_least32_t *, size_t, uint_least32_t *, size_t);
 size_t grapheme_to_titlecase(const uint_least32_t *, size_t, uint_least32_t *, size_t);
 
-size_t grapheme_to_uppercase_utf8(const char *, size_t, char *, size_t);
 size_t grapheme_to_lowercase_utf8(const char *, size_t, char *, size_t);
+size_t grapheme_to_uppercase_utf8(const char *, size_t, char *, size_t);
 size_t grapheme_to_titlecase_utf8(const char *, size_t, char *, size_t);
 
-bool grapheme_is_uppercase(const uint_least32_t *, size_t, size_t *);
-bool grapheme_is_lowercase(const uint_least32_t *, size_t, size_t *);
-bool grapheme_is_titlecase(const uint_least32_t *, size_t, size_t *);
-
-bool grapheme_is_uppercase_utf8(const char *, size_t, size_t *);
-bool grapheme_is_lowercase_utf8(const char *, size_t, size_t *);
-bool grapheme_is_titlecase_utf8(const char *, size_t, size_t *);
-
-size_t grapheme_decode_utf8(const char *, size_t, uint_least32_t *);
-size_t grapheme_encode_utf8(uint_least32_t, char *, size_t);
-
 #endif /* GRAPHEME_H */
Received on Sat Sep 17 2022 - 01:14:24 CEST

This archive was generated by hypermail 2.3.0 : Sat Sep 17 2022 - 01:24:37 CEST