24 int rot= (9 * l) & 31;
29 ((
u2 <<
rot) & 0xffffffff) ^ ((
u2 >> (32 -
rot)) & 0xffffffff);
30 return (
int) (
u1 ^
r2);
36 for (
int i=
N (s) - 1; i >= 0; i--) {
37 h= ((h << 9) & 0xffffffff) ^ ((h >> 23) & 0xffffffff);
38 h= h ^ ((
unsigned int) (
unsigned char) s[i]);
52 for (i= 0; i < n; i++)
53 codes[i]= (
int) (
unsigned int) (
unsigned char)
s[i];
57 for (i= 0; i + l <= n; i++) {
64 for (i= 0; i +
d <= n; i++)
83 for (
int i= 0; i <=
N (
s); i++)
88 while ((
k << 1) <=
N (
what)) {
94 else return a[l][code];
100 for (
int i= 0; i <
N (
ps); i++) {
113 for (
int i= 0; i <
N (
ps); i++) {
131 for (
int i=
min (
N (
ss1->a),
N (
ss2->a)) - 1; i >= 0; i--) {
135 while (
it->busy ()) {
139 if (
N (
ps1) == 0 ||
N (
ps2) == 0)
continue;
bool test(string s, int i, const char *test)
int N(array< T > a)
Get the length of the array.
bool contains(T a, array< T > b)
Check if an array contains a specified element.
The list class represents a linked list.
int search_next(string what, int pos)
array< int > search_all(string what)
array< int > search_sub(string what)
array< hashmap< int, array< int > > > a
string_searcher_rep(string s)
void get_longest_common(string s1, string s2, int &b1, int &e1, int &b2, int &e2)
static int hash_combine(int c1, int c2, int l)
static int fast_hash(string s)
iterator< T > iterate(hashmap< T, U > h)
Generates an iterator for a container of type hashmap<T, U>.
SI min(SI i, SI j)
Returns the minimum of two signed integers.