acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
ansi.h
1#pragma once
2
3
4CLASS_DECL_ACME ::ansi_character ansi_char_tolower(::i32 i);
5CLASS_DECL_ACME ::ansi_character ansi_char_toupper(::i32 i);
6
7CLASS_DECL_ACME ::i32 ansi_char_isdigit(::i32 i);
8CLASS_DECL_ACME ::i32 ansi_char_isalpha(::i32 i);
9CLASS_DECL_ACME ::i32 ansi_char_isalnum(::i32 i);
10CLASS_DECL_ACME ::i32 ansi_char_isspace(::i32 i);
11
12CLASS_DECL_ACME ::i32 ansi_char_isxdigit(::i32 i);
13
14
15CLASS_DECL_ACME ::i32 ansi_char_is_hexadecimal(::i32 i);
16
17
18CLASS_DECL_ACME ::ansi_character * ansi_last_char(::ansi_character * psz);
19CLASS_DECL_ACME const_char_pointer ansi_const_last_char(const_char_pointer psz);
20CLASS_DECL_ACME ::ansi_character * ansi_concatenate(::ansi_character * psz, const_char_pointer cat);
21CLASS_DECL_ACME ::ansi_character * ansi_concatenate(::ansi_character * psz, const_char_pointer cat, character_count n);
22CLASS_DECL_ACME ::ansi_character * ansi_copy(::ansi_character * psz, const_char_pointer cpy);
23CLASS_DECL_ACME ::ansi_character * ansi_count_copy(::ansi_character * psz, const_char_pointer cpy, character_count len);
24CLASS_DECL_ACME character_count ansi_length(const_char_pointer psz);
25CLASS_DECL_ACME ::ansi_character * ansi_duplicate(const_char_pointer psz); // ATTENTION - ::system()->m_pheapmanagement->memory(::heap::e_memory_main)->allocate
26CLASS_DECL_ACME ::ansi_character * ansi_count_duplicate(const_char_pointer psz, character_count len); // ATTENTION - ::system()->m_pheapmanagement->memory(::heap::e_memory_main)->allocate
27CLASS_DECL_ACME const_char_pointer ansi_find_string(const_char_pointer psz, const_char_pointer find);
28CLASS_DECL_ACME const_char_pointer case_insensitive_ansi_find_string(const_char_pointer psz, const_char_pointer find);
29CLASS_DECL_ACME const_char_pointer ansi_count_find_string(const_char_pointer psz, const_char_pointer find, character_count len);
30CLASS_DECL_ACME const_char_pointer case_insensitive_ansi_count_find_string(const_char_pointer psz, const_char_pointer find, character_count len);
31
32//CLASS_DECL_ACME ::ansi_character * ansi_next_token(::ansi_character * psz, ::ansi_character ch);
33
34
35CLASS_DECL_ACME ::i32 ansi_compare(const_char_pointer sz1, const_char_pointer sz2);
36CLASS_DECL_ACME ::i32 case_insensitive_ansi_compare(const_char_pointer sz1, const_char_pointer sz2);
37CLASS_DECL_ACME ::i32 ansi_count_compare(const_char_pointer sz1, const_char_pointer sz2, character_count iLen);
38CLASS_DECL_ACME ::i32 case_insensitive_ansi_count_compare(const_char_pointer sz1, const_char_pointer sz2, character_count iLen);
39CLASS_DECL_ACME ::i32 ansi_collate(const_char_pointer sz1, const_char_pointer sz2);
40CLASS_DECL_ACME ::i32 case_insensitive_ansi_collate(const_char_pointer sz1, const_char_pointer sz2);
41CLASS_DECL_ACME ::i32 ansi_count_collate(const_char_pointer sz1, const_char_pointer sz2, character_count iLen);
42CLASS_DECL_ACME ::i32 case_insensitive_ansi_count_collate(const_char_pointer sz1, const_char_pointer sz2, character_count iLen);
43CLASS_DECL_ACME ::i32 ansi_begins(const_char_pointer sz1, const_char_pointer prefix);
44CLASS_DECL_ACME ::i32 case_insensitive_ansi_begins(const_char_pointer sz1, const_char_pointer prefix);
45CLASS_DECL_ACME const_char_pointer ansi_begins_eat(const_char_pointer sz1, const_char_pointer prefix);
46CLASS_DECL_ACME const_char_pointer case_insensitive_ansi_begins_eat(const_char_pointer sz1, const_char_pointer prefix);
47CLASS_DECL_ACME ::i32 ansi_ends(const_char_pointer sz1, const_char_pointer suffix);
48CLASS_DECL_ACME ::i32 case_insensitive_ansi_ends(const_char_pointer sz1, const_char_pointer suffix);
49CLASS_DECL_ACME const_char_pointer ansi_find_char(const_char_pointer sz, ::ansi_character ch);
50CLASS_DECL_ACME const_char_pointer ansi_find_char_reverse(const_char_pointer sz, ::ansi_character ch);
51CLASS_DECL_ACME const_char_pointer ansi_concatenate_and_duplicate(const_char_pointer psz1, const_char_pointer psz2, ::i32_bool iFree1 = false, ::i32_bool iFree2 = false);
52
53//CLASS_DECL_ACME void ansi_from_i64(char_pointer sz, ::i64 i, ::i32 iBase, enum_digit_case edigitcase = e_digit_case_lower);
54//CLASS_DECL_ACME void ansi_from_u64(char_pointer sz, ::u64 u, ::i32 iBase, enum_digit_case edigitcase = e_digit_case_lower);
55
56CLASS_DECL_ACME void ansi_from_u64(::ansi_character * psz, ::u64 u, ::i32 iBase = 10, enum_digit_case edigitcase = e_digit_case_lower);
57CLASS_DECL_ACME void ansi_from_i64(::ansi_character * psz, ::i64 i, ::i32 iBase = 10, enum_digit_case edigitcase = e_digit_case_lower);
58
59CLASS_DECL_ACME void ansi_from_ui(::ansi_character * psz, ::u32 u, ::i32 iBase = 10, enum_digit_case edigitcase = e_digit_case_lower);
60CLASS_DECL_ACME void ansi_from_i(::ansi_character * psz, ::i32 i, ::i32 iBase = 10, enum_digit_case edigitcase = e_digit_case_lower);
61
62CLASS_DECL_ACME ::i64 ansi_to_i64(const_char_pointer psz, const_char_pointer *ppszEnd = nullptr, ::i32 iBase = 10);
63CLASS_DECL_ACME ::u64 ansi_to_u64(const_char_pointer psz, const_char_pointer *ppszEnd = nullptr, ::i32 iBase = 10);
64CLASS_DECL_ACME ::i64 ansi_count_to_i64(const_char_pointer psz, const_char_pointer *ppszEnd, ::i32 iBase, character_count srclen);
65
66CLASS_DECL_ACME ::i32 ansi_to_int(const_char_pointer psz, const_char_pointer *ppszEnd = nullptr, ::i32 iBase = 10);
67CLASS_DECL_ACME ::u32 ansi_to_u32(const_char_pointer psz, const_char_pointer *ppszEnd = nullptr, ::i32 iBase = 10);
68CLASS_DECL_ACME ::i32 ansi_count_to_int(const_char_pointer psz, const_char_pointer *ppszEnd, ::i32 iBase, character_count srclen);
69
70
71CLASS_DECL_ACME void ansi_reverse(::ansi_character * sz);
72CLASS_DECL_ACME void ansi_reverse(::ansi_character * sz, character_count size);
73CLASS_DECL_ACME void ansi_zero_pad(::ansi_character * sz, character_count lenPad);
74CLASS_DECL_ACME const_char_pointer _ansi_scan(const_char_pointer psz, const_char_pointer pszCharacters);
75CLASS_DECL_ACME const_char_pointer ansi_scan(const_char_pointer psz, const_char_pointer pszCharacters);
76//CLASS_DECL_ACME const_char_pointer ansi_token(const_char_pointer psz, const_char_pointer pszSeparators);
77CLASS_DECL_ACME ::ansi_character * ansi_first_token(::ansi_character * psz, const_char_pointer delimiters, ::ansi_character ** action_context);
78CLASS_DECL_ACME ::ansi_character * ansi_next_token(const_char_pointer delimiters, ::ansi_character ** action_context);
79
80
81CLASS_DECL_ACME ::ansi_character * ansi_lower(::ansi_character * pch);
82CLASS_DECL_ACME ::ansi_character * ansi_upper(::ansi_character * pch);
83
84
85CLASS_DECL_ACME ::i32_bool matches_wildcard_criteria(const_char_pointer pszCriteria, const_char_pointer pszValue);
86CLASS_DECL_ACME ::i32_bool case_insensitive_matches_wildcard_criteria(const_char_pointer pszCriteria, const_char_pointer pszValue);
87
88
89CLASS_DECL_ACME void ansi_parse_command_line(::ansi_character * cmdstart, ::ansi_character ** argv, ::ansi_character * args, ::i32 * numargs, ::i32 * numchars);
90
91
92
93
94CLASS_DECL_ACME const void * memory_find_memory(const void * src, character_count srclen, const void * find, character_count findlen);
95
96
97CLASS_DECL_ACME const_char_pointer wildcard_next_stop(const_char_pointer pszCriteria);
98
99
100CLASS_DECL_ACME ::i32_bool wildcard_matches_criteria(const_char_pointer pszCriteria, const_char_pointer pszValue);
101CLASS_DECL_ACME ::i32_bool case_insensitive_wildcard_matches_criteria(const_char_pointer pszCriteria, const_char_pointer pszValue);
102
103
104//CLASS_DECL_ACME const_char_pointer eol();
105
106
107//#ifdef __cplusplus
108//
109//
110//#define EOL (::eol())
111//
112//#else
113//
114//#define EOL (eol())
115//
116//#endif
117
118
119
Definition action_context.h:9