| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** 2007 May 6 | 2 ** 2007 May 6 |
| 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 20 matching lines...) Expand all Loading... |
| 31 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_ICU) | 31 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_ICU) |
| 32 | 32 |
| 33 /* Include ICU headers */ | 33 /* Include ICU headers */ |
| 34 #include <unicode/utypes.h> | 34 #include <unicode/utypes.h> |
| 35 #include <unicode/uregex.h> | 35 #include <unicode/uregex.h> |
| 36 #include <unicode/ustring.h> | 36 #include <unicode/ustring.h> |
| 37 #include <unicode/ucol.h> | 37 #include <unicode/ucol.h> |
| 38 | 38 |
| 39 #include <assert.h> | 39 #include <assert.h> |
| 40 | 40 |
| 41 // TODO(evanm): this is cut'n'pasted from fts2.c. Why is it necessary? | |
| 42 #if !defined(SQLITE_CORE) | |
| 43 # define SQLITE_CORE 1 | |
| 44 #endif | |
| 45 | |
| 46 #ifndef SQLITE_CORE | 41 #ifndef SQLITE_CORE |
| 47 #include "sqlite3ext.h" | 42 #include "sqlite3ext.h" |
| 48 SQLITE_EXTENSION_INIT1 | 43 SQLITE_EXTENSION_INIT1 |
| 49 #else | 44 #else |
| 50 #include "sqlite3.h" | 45 #include "sqlite3.h" |
| 51 #endif | 46 #endif |
| 52 | 47 |
| 53 /* | 48 /* |
| 54 ** Maximum length (in bytes) of the pattern in a LIKE or GLOB | 49 ** Maximum length (in bytes) of the pattern in a LIKE or GLOB |
| 55 ** operator. | 50 ** operator. |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 sqlite3 *db, | 490 sqlite3 *db, |
| 496 char **pzErrMsg, | 491 char **pzErrMsg, |
| 497 const sqlite3_api_routines *pApi | 492 const sqlite3_api_routines *pApi |
| 498 ){ | 493 ){ |
| 499 SQLITE_EXTENSION_INIT2(pApi) | 494 SQLITE_EXTENSION_INIT2(pApi) |
| 500 return sqlite3IcuInit(db); | 495 return sqlite3IcuInit(db); |
| 501 } | 496 } |
| 502 #endif | 497 #endif |
| 503 | 498 |
| 504 #endif | 499 #endif |
| OLD | NEW |