acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
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
//::i32 get_char(const std::string &input, size_t pos, encoding_type encoding);
36
38
//void set_char(std::string &input, size_t pos, ::i32 code_point, encoding_type encoding);
39
41
//void add_char(std::string &input, ::i32 code_point, encoding_type encoding);
42
44
//bool unicode_data_is_alpha(::i32 code_point);
45
47
//bool unicode_data_is_upper(::i32 code_point);
48
50
//bool unicode_data_is_lower(::i32 code_point);
51
53
//bool unicode_data_is_title(::i32 code_point);
54
56
//bool unicode_data_is_numeric(::i32 code_point);
57
59
//bool unicode_data_is_whitespace(::i32 code_point);
60
62
//bool unicode_data_is_newline(::i32 code_point);
63
64
// convert a code point to uppercase (return the input if no uppercase form exists)
65
CLASS_DECL_ACME ::i32 uni_to_upper_case(::i32 code_point);
66
67
// convert a code point to lowercase (return the input if no lowercase form exists)
68
CLASS_DECL_ACME ::i32 uni_to_lower_case(::i32 code_point);
69
70
// convert a code point to titlecase (return the input if no titlecase form exists)
71
//::i32 uni_to_title(::i32 code_point);
72
//
73
//}
74
//
75
//#endif
prototype
string
aaa__unicode_data.h
Generated by
1.17.0