lib: fix conversion of hex char to int and add test
[nit.git] / c_src / string.sep.0.h
1 #include "nit.common.h"
2 extern const int COLOR_string__AbstractString___items;
3 char* string__AbstractString__items(val* self);
4 char string__AbstractString___91d_93d(val* self, long p0);
5 extern const struct type type_kernel__Int;
6 extern const int COLOR_abstract_collection__Collection__length;
7 val* NEW_string__Buffer(const struct type* type);
8 extern const struct type type_string__Buffer;
9 extern const int COLOR_string__Buffer__with_capacity;
10 void CHECK_NEW_string__Buffer(val*);
11 extern const int COLOR_abstract_collection__Sequence__push;
12 extern const int COLOR_string__Object__to_s;
13 val* string__NativeString__to_s_with_length(char* self, long p0);
14 val* string__AbstractString__substring(val* self, long p0, long p1);
15 extern const int COLOR_string__AbstractString__substring;
16 val* string__AbstractString__substring_from(val* self, long p0);
17 extern const int COLOR_string__String___index_from;
18 short int string__AbstractString__has_substring(val* self, val* p0, long p1);
19 extern const int COLOR_string__AbstractString__has_substring;
20 short int string__AbstractString__has_prefix(val* self, val* p0);
21 short int string__AbstractString__has_suffix(val* self, val* p0);
22 extern const int COLOR_string__String__to_cstring;
23 long string__AbstractString__to_i(val* self);
24 double string__NativeString__atof(char* self);
25 double string__AbstractString__to_f(val* self);
26 extern const int COLOR_string__AbstractString__a_to;
27 long string__AbstractString__to_hex(val* self);
28 extern const int COLOR_abstract_collection__Collection__iterator;
29 extern const int COLOR_abstract_collection__Iterator__is_ok;
30 extern const int COLOR_abstract_collection__Iterator__item;
31 long kernel__Char__to_i(char self);
32 extern const int COLOR_abstract_collection__Iterator__next;
33 long string__AbstractString__a_to(val* self, long p0);
34 short int string__Char__is_numeric(char self);
35 short int string__AbstractString__is_numeric(val* self);
36 char kernel__Char__to_upper(char self);
37 extern const int COLOR_abstract_collection__SimpleCollection__add;
38 val* string__AbstractString__to_upper(val* self);
39 char kernel__Char__to_lower(char self);
40 val* string__AbstractString__to_lower(val* self);
41 extern const int COLOR_array__AbstractArrayRead___length;
42 extern const int COLOR_abstract_collection__SequenceRead___91d_93d;
43 val* string__Char__to_s(char self);
44 val* string__AbstractString__trim(val* self);
45 void string__AbstractString__output(val* self);
46 extern const int COLOR_string__Buffer__init;
47 extern const struct type type_kernel__Char;
48 val* string__Int__to_s(long self);
49 extern const int COLOR_abstract_collection__Sequence__append;
50 val* string__AbstractString__to_cmangle(val* self);
51 val* string__Int__to_base(long self, long p0, short int p1);
52 val* NEW_array__Array(const struct type* type);
53 extern const struct type type_array__Arraykernel__Object;
54 val* NEW_array__NativeArray(int length, const struct type* type);
55 extern const struct type type_array__NativeArraykernel__Object;
56 extern const int COLOR_array__Array__with_native;
57 void CHECK_NEW_array__Array(val*);
58 val* string__AbstractString__escape_to_c(val* self);
59 extern const int COLOR_string__AbstractString__escape_to_c;
60 extern const int COLOR_abstract_collection__Collection__has;
61 val* string__AbstractString__escape_more_to_c(val* self, val* p0);
62 extern const int COLOR_string__AbstractString__escape_more_to_c;
63 val* string__AbstractString__escape_to_nit(val* self);
64 val* string__AbstractString__unescape_nit(val* self);
65 extern const int COLOR_array__AbstractArrayRead__init;
66 void string__AbstractString__init(val* self);
67 long string__String__index_from(val* self);
68 extern const int COLOR_string__String___index_to;
69 long string__String__index_to(val* self);
70 char string__String___91d_93d(val* self, long p0);
71 val* NEW_string__String(const struct type* type);
72 extern const struct type type_string__String;
73 extern const int COLOR_string__String__from_substring;
74 void CHECK_NEW_string__String(val*);
75 val* string__String__substring(val* self, long p0, long p1);
76 val* string__String__substring_from(val* self, long p0);
77 extern const int COLOR_string__String__index_from;
78 short int string__String__has_substring(val* self, val* p0, long p1);
79 extern const int COLOR_string__StringCapable__calloc_string;
80 val* string__String__to_upper(val* self);
81 val* string__String__to_lower(val* self);
82 val* string__String__trim(val* self);
83 void string__String__output(val* self);
84 extern const int COLOR_string__AbstractString__init;
85 void string__String__from_substring(val* self, long p0, long p1, char* p2);
86 void string__String__with_infos(val* self, char* p0, long p1, long p2, long p3);
87 extern const int COLOR_string__AbstractString__items;
88 long string__NativeString__cstring_length(char* self);
89 char* string__String__to_cstring(val* self);
90 extern const int COLOR_kernel__Object__object_id;
91 short int string__String___61d_61d(val* self, val* p0);
92 extern const int COLOR_kernel__Comparable_VTOTHER;
93 short int string__String___60d(val* self, val* p0);
94 val* string__String___43d(val* self, val* p0);
95 val* NEW_range__Range(const struct type* type);
96 extern const struct type type_range__Rangekernel__Int;
97 extern const int COLOR_range__Range__init;
98 void CHECK_NEW_range__Range(val*);
99 val* string__String___42d(val* self, long p0);
100 val* string__String__to_s(val* self);
101 long string__String__hash(val* self);
102 void string__Buffer___91d_93d_61d(val* self, long p0, char p1);
103 extern const int COLOR_string__Buffer___capacity;
104 extern const int COLOR_array__AbstractArray__enlarge;
105 void string__Buffer__add(val* self, char p0);
106 void string__Buffer__enlarge(val* self, long p0);
107 extern const int COLOR_string__Buffer__append;
108 void string__Buffer__append(val* self, val* p0);
109 val* string__Buffer__to_s(val* self);
110 short int string__Buffer___60d(val* self, val* p0);
111 void string__Buffer__init(val* self);
112 extern const int COLOR_array__AbstractArray__init;
113 void string__Buffer__from(val* self, val* p0);
114 void string__Buffer__with_capacity(val* self, long p0);
115 short int string__Buffer___61d_61d(val* self, val* p0);
116 long string__Buffer__capacity(val* self);
117 extern const int COLOR_string__Object__inspect;
118 val* string__Object__to_s(val* self);
119 extern const int COLOR_string__Object__native_class_name;
120 val* string__NativeString__to_s(char* self);
121 val* string__Object__class_name(val* self);
122 extern const int COLOR_array__Array__with_capacity;
123 extern const int COLOR_string__Object__inspect_head;
124 val* string__Object__inspect(val* self);
125 extern const int COLOR_string__Object__class_name;
126 val* string__Int__to_hex(long self);
127 val* string__Object__inspect_head(val* self);
128 extern const int COLOR_kernel__Object__sys;
129 extern const int COLOR_string__Object__args;
130 val* string__Object__args(val* self);
131 val* string__Bool__to_s(short int self);
132 extern const int COLOR_abstract_collection__Sequence___91d_93d_61d;
133 long kernel__Int__digit_count(long self, long p0);
134 char kernel__Int__to_c(long self);
135 void string__Int__fill_buffer(long self, val* p0, long p1, short int p2);
136 #include "string_nit.h"
137 char* string__Int__native_int_to_s(long self, long p0);
138 extern const int COLOR_string__String___42d;
139 extern const int COLOR_string__Buffer__from;
140 val* string__Float__to_precision(double self, long p0);
141 val* string__Float__to_s(double self);
142 extern const int COLOR_range__Range__without_last;
143 extern const int COLOR_string__String___43d;
144 val* string__Float__to_precision_native(double self, long p0);
145 short int string__Char__is_alpha(char self);
146 short int string__Char__is_alphanumeric(char self);
147 val* string__Collection__to_s(val* self);
148 extern const int COLOR_abstract_collection__Collection__is_empty;
149 val* string__Collection__join(val* self, val* p0);
150 val* string__Array__to_s(val* self);
151 extern const int COLOR_abstract_collection__MapRead__is_empty;
152 extern const int COLOR_abstract_collection__MapRead__iterator;
153 extern const int COLOR_abstract_collection__MapIterator__key;
154 extern const int COLOR_abstract_collection__MapIterator__item;
155 extern const int COLOR_abstract_collection__MapIterator__next;
156 extern const int COLOR_abstract_collection__MapIterator__is_ok;
157 val* string__Map__join(val* self, val* p0, val* p1);
158 extern const int COLOR_string__String__with_infos;
159 val* string__NativeString__to_s_with_copy(char* self);
160 void string__NativeString__init(char* self);
161 extern const int COLOR_string__Sys___args_cache;
162 extern const int COLOR_string__Sys__init_args;
163 val* string__Sys__args(val* self);
164 extern const int COLOR_string__Sys__native_argv;
165 val* string__Sys__program_name(val* self);
166 extern const int COLOR_string__Sys__native_argc;
167 extern const struct type type_array__Arraystring__String;
168 void string__Sys__init_args(val* self);