** Both (const char*) arguments point to nul-terminated strings. Argument ** nB is the value of strlen(zB). This function returns 0 if the strings are ** identical, ignoring any trailing '/' character in either path. */
| 7317 | ** nB is the value of strlen(zB). This function returns 0 if the strings are |
| 7318 | ** identical, ignoring any trailing '/' character in either path. */ |
| 7319 | static int zipfileComparePath(const char *zA, const char *zB, int nB){ |
| 7320 | int nA = (int)strlen(zA); |
| 7321 | if( nA>0 && zA[nA-1]=='/' ) nA--; |
| 7322 | if( nB>0 && zB[nB-1]=='/' ) nB--; |
| 7323 | if( nA==nB && memcmp(zA, zB, nA)==0 ) return 0; |
| 7324 | return 1; |
| 7325 | } |
| 7326 | |
| 7327 | static int zipfileBegin(sqlite3_vtab *pVtab){ |
| 7328 | ZipfileTab *pTab = (ZipfileTab*)pVtab; |