search for: sequal

Displaying 1 result from an estimated 1 matches for "sequal".

Did you mean: equal
2010 Feb 22
1
shash in unique.c
...hData *d) { unsigned int k; const char *p; if(d->useUTF8) p = translateCharUTF8(STRING_ELT(x, indx)); else p = translateChar(STRING_ELT(x, indx)); k = 0; while (*p++) k = 11 * k + *p; /* was 8 but 11 isn't a power of 2 */ return scatter(k, d); } Looking at sequal, below, and reading its comments, if the pointers are equal it doesn't look at the strings they point to, which lead to the question above. static int sequal(SEXP x, int i, SEXP y, int j) { if (i < 0 || j < 0) return 0; /* Two strings which have the same address must be the sam...