26 n= (n + 3) & (0xfffffffc);
63 for (
int i= 0; i < n; i++)
70 for (i= 0; i < n; i++)
77 for (i= 0; i < n; i++)
89 for (i= 0; i < n; i++) {
90 if (s[i] !=
S[i])
return false;
91 if (s[i] ==
'\0')
return false;
93 return (s[i] ==
'\0');
100 for (i= 0; i < n; i++) {
101 if (s[i] !=
S[i])
return true;
102 if (s[i] ==
'\0')
return true;
104 return (s[i] !=
'\0');
134 for (i= 0; i < n; i++)
141 a->resize (
N (a) + 1);
150 for (i= 0; i <
k2; i++)
159 for (i= 0; i <
n1; i++)
161 for (i= 0; i <
n2; i++)
190 h= (h << 9) + (h >> 23);
202 return (s ==
"true" || s ==
"#t");
207 int i= 0, n=
N (s),
val= 0;
208 if (n == 0)
return 0;
209 if (s[0] ==
'+') i++;
210 if (s[0] ==
'-') i++;
212 if (s[i] <
'0')
break;
213 if (s[i] >
'9')
break;
215 val+= (int) (s[i] -
'0');
218 if (s[0] ==
'-')
val= -
val;
226 if (n == 0)
return 0;
227 if (s[0] ==
'+') i++;
228 if (s[0] ==
'-') i++;
230 if (s[i] <
'0')
break;
231 if (s[i] >
'9')
break;
233 val+= (int) (s[i] -
'0');
236 if (s[0] ==
'-')
val= -
val;
246 for (i= 0; i < n; i++)
259 for (i= 0; i < n; i++)
268 else return string (
"false");
322 return (s ==
"true") || (s ==
"false");
328 if (n == 0)
return false;
329 if (s[i] ==
'+') i++;
330 if (s[i] ==
'-') i++;
331 if (i == n)
return false;
333 if ((s[i] <
'0') || (s[i] >
'9'))
return false;
340 if (n == 0)
return false;
341 if (s[i] ==
'+') i++;
342 if (s[i] ==
'-') i++;
343 if (i == n)
return false;
345 if ((s[i] <
'0') || (s[i] >
'9'))
break;
346 if (i == n)
return true;
349 if (i == n)
return false;
351 if ((s[i] <
'0') || (s[i] >
'9'))
break;
353 if (i == n)
return true;
354 if (s[i++] !=
'e')
return false;
355 if (s[i] ==
'+') i++;
356 if (s[i] ==
'-') i++;
357 if (i == n)
return false;
359 if ((s[i] <
'0') || (s[i] >
'9'))
return false;
372 return (n >= 2) && (s[0] ==
'\"') && (s[n - 1] ==
'\"');
378 if (n == 0)
return false;
379 for (i= 0; i < n; i++) {
380 if ((i > 0) && (s[i] >=
'0') && (s[i] <=
'9'))
continue;
381 if ((s[i] >=
'a') && (s[i] <=
'z'))
continue;
382 if ((s[i] >=
'A') && (s[i] <=
'Z'))
continue;
383 if (s[i] ==
'_')
continue;
int N(array< T > a)
Get the length of the array.
int round_length(int n, size_t s)
#define STACK_NEW_ARRAY(name, T, size)
#define STACK_DELETE_ARRAY(name)
The list class represents a linked list.
bool operator!=(const char *s)
bool operator==(const char *s)
string operator()(int start, int end)
void tm_delete_array(C *Ptr)
SI min(SI i, SI j)
Returns the minimum of two signed integers.
SI max(SI i, SI j)
Returns the maximum of two signed integers.
bool operator<(string s1, string s2)
bool operator<=(string s1, string s2)
static int round_length(int n)
string as_string_bool(bool f)
char * as_charp(string s)
string as_string(int16_t i)
long int as_long_int(string s)
double as_double(string s)
string operator*(string a, string b)
string & operator<<(string &a, char x)