acme
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages Concepts
aaa__unicode_data.h
1// Adapted by camilo on 2022-11-04 14:03 <3ThomaBorregaardSorensen!!
2#include "framework.h"
3
4/*
5 Portable ASCII and Unicode string manipulation functions for C++.
6*/
7
9 //enum encoding_type {
10 // ENCODING_UNKNOWN,
11 // ENCODING_ASCII,
12 // ENCODING_UTF8,
13 // ENCODING_UTF16BE,
14 // ENCODING_UTF16LE,
15 // ENCODING_UTF32BE,
16 // ENCODING_UTF32LE,
17 //};
18
20 //encoding_type detect_encoding(const std::string &input);
21
23 //bool is_valid(const std::string &input, encoding_type encoding);
24
26 //std::string convert_encoding(const std::string &input, encoding_type input_encoding, encoding_type output_encoding, bool include_bom);
27
29 //size_t get_length(const std::string &input, encoding_type encoding);
30
32 //size_t get_char_size(const std::string &input, size_t pos, encoding_type encoding);
33
35 //int get_char(const std::string &input, size_t pos, encoding_type encoding);
36
38 //void set_char(std::string &input, size_t pos, int code_point, encoding_type encoding);
39
41 //void add_char(std::string &input, int code_point, encoding_type encoding);
42
44 //bool unicode_data_is_alpha(int code_point);
45
47 //bool unicode_data_is_upper(int code_point);
48
50 //bool unicode_data_is_lower(int code_point);
51
53 //bool unicode_data_is_title(int code_point);
54
56 //bool unicode_data_is_numeric(int code_point);
57
59 //bool unicode_data_is_whitespace(int code_point);
60
62 //bool unicode_data_is_newline(int code_point);
63
64 // convert a code point to uppercase (return the input if no uppercase form exists)
65 CLASS_DECL_ACME int uni_to_upper_case(int code_point);
66
67 // convert a code point to lowercase (return the input if no lowercase form exists)
68 CLASS_DECL_ACME int uni_to_lower_case(int code_point);
69
70 // convert a code point to titlecase (return the input if no titlecase form exists)
71 //int uni_to_title(int code_point);
72//
73//}
74//
75//#endif