OLD | NEW |
1 /* | 1 /* |
2 ** 2002 February 23 | 2 ** 2002 February 23 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 int len = 0; | 1107 int len = 0; |
1108 for(i=0; i<nChar; i++){ | 1108 for(i=0; i<nChar; i++){ |
1109 len = aLen[i]; | 1109 len = aLen[i]; |
1110 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break; | 1110 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break; |
1111 } | 1111 } |
1112 if( i>=nChar ) break; | 1112 if( i>=nChar ) break; |
1113 nIn -= len; | 1113 nIn -= len; |
1114 } | 1114 } |
1115 } | 1115 } |
1116 if( zCharSet ){ | 1116 if( zCharSet ){ |
1117 sqlite3_free((void*)azChar); | 1117 sqlite3_free(azChar); |
1118 } | 1118 } |
1119 } | 1119 } |
1120 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT); | 1120 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT); |
1121 } | 1121 } |
1122 | 1122 |
1123 | 1123 |
1124 /* IMP: R-25361-16150 This function is omitted from SQLite by default. It | 1124 /* IMP: R-25361-16150 This function is omitted from SQLite by default. It |
1125 ** is only available if the SQLITE_SOUNDEX compile-time option is used | 1125 ** is only available if the SQLITE_SOUNDEX compile-time option is used |
1126 ** when SQLite is built. | 1126 ** when SQLite is built. |
1127 */ | 1127 */ |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 FuncDef *aFunc = (FuncDef*)&GLOBAL(FuncDef, aBuiltinFunc); | 1582 FuncDef *aFunc = (FuncDef*)&GLOBAL(FuncDef, aBuiltinFunc); |
1583 | 1583 |
1584 for(i=0; i<ArraySize(aBuiltinFunc); i++){ | 1584 for(i=0; i<ArraySize(aBuiltinFunc); i++){ |
1585 sqlite3FuncDefInsert(pHash, &aFunc[i]); | 1585 sqlite3FuncDefInsert(pHash, &aFunc[i]); |
1586 } | 1586 } |
1587 sqlite3RegisterDateTimeFunctions(); | 1587 sqlite3RegisterDateTimeFunctions(); |
1588 #ifndef SQLITE_OMIT_ALTERTABLE | 1588 #ifndef SQLITE_OMIT_ALTERTABLE |
1589 sqlite3AlterFunctions(); | 1589 sqlite3AlterFunctions(); |
1590 #endif | 1590 #endif |
1591 } | 1591 } |
OLD | NEW |