OmniSciDB
a5dc49c757
|
Functions to support the LIKE and ILIKE operator in SQL. Only single-byte character set is supported for now. More...
Go to the source code of this file.
Functions | |
RUNTIME_EXPORT DEVICE bool | string_like (const char *str, int str_len, const char *pattern, int pat_len, char escape_char) |
RUNTIME_EXPORT DEVICE bool | string_ilike (const char *str, int str_len, const char *pattern, int pat_len, char escape_char) |
RUNTIME_EXPORT DEVICE bool | string_like_simple (const char *str, const int32_t str_len, const char *pattern, const int32_t pat_len, char escape_char) |
RUNTIME_EXPORT DEVICE bool | string_ilike_simple (const char *str, const int32_t str_len, const char *pattern, const int32_t pat_len, char escape_char) |
RUNTIME_EXPORT DEVICE bool | string_lt (const char *lhs, const int32_t lhs_len, const char *rhs, const int32_t rhs_len) |
RUNTIME_EXPORT DEVICE bool | string_le (const char *lhs, const int32_t lhs_len, const char *rhs, const int32_t rhs_len) |
RUNTIME_EXPORT DEVICE bool | string_eq (const char *lhs, const int32_t lhs_len, const char *rhs, const int32_t rhs_len) |
RUNTIME_EXPORT DEVICE bool | string_ne (const char *lhs, const int32_t lhs_len, const char *rhs, const int32_t rhs_len) |
RUNTIME_EXPORT DEVICE bool | string_ge (const char *lhs, const int32_t lhs_len, const char *rhs, const int32_t rhs_len) |
RUNTIME_EXPORT DEVICE bool | string_gt (const char *lhs, const int32_t lhs_len, const char *rhs, const int32_t rhs_len) |
RUNTIME_EXPORT DEVICE int32_t | StringCompare (const char *s1, const int32_t s1_len, const char *s2, const int32_t s2_len) |
Functions to support the LIKE and ILIKE operator in SQL. Only single-byte character set is supported for now.
Definition in file StringLike.h.
RUNTIME_EXPORT DEVICE bool string_eq | ( | const char * | lhs, |
const int32_t | lhs_len, | ||
const char * | rhs, | ||
const int32_t | rhs_len | ||
) |
Definition at line 336 of file StringLike.cpp.
References StringCompare().
Referenced by StringDictionary::getCompare().
RUNTIME_EXPORT DEVICE bool string_ge | ( | const char * | lhs, |
const int32_t | lhs_len, | ||
const char * | rhs, | ||
const int32_t | rhs_len | ||
) |
Definition at line 329 of file StringLike.cpp.
References StringCompare().
RUNTIME_EXPORT DEVICE bool string_gt | ( | const char * | lhs, |
const int32_t | lhs_len, | ||
const char * | rhs, | ||
const int32_t | rhs_len | ||
) |
Definition at line 322 of file StringLike.cpp.
References StringCompare().
RUNTIME_EXPORT DEVICE bool string_ilike | ( | const char * | str, |
int | str_len, | ||
const char * | pattern, | ||
int | pat_len, | ||
char | escape_char | ||
) |
RUNTIME_EXPORT DEVICE bool string_ilike_simple | ( | const char * | str, |
const int32_t | str_len, | ||
const char * | pattern, | ||
const int32_t | pat_len, | ||
char | escape_char | ||
) |
Definition at line 61 of file StringLike.cpp.
References lowercase().
Referenced by StringDictionaryProxy::getLike(), and StringDictionary::getLikeImpl().
RUNTIME_EXPORT DEVICE bool string_le | ( | const char * | lhs, |
const int32_t | lhs_len, | ||
const char * | rhs, | ||
const int32_t | rhs_len | ||
) |
Definition at line 315 of file StringLike.cpp.
References StringCompare().
RUNTIME_EXPORT DEVICE bool string_like | ( | const char * | str, |
int | str_len, | ||
const char * | pattern, | ||
int | pat_len, | ||
char | escape_char | ||
) |
RUNTIME_EXPORT DEVICE bool string_like_simple | ( | const char * | str, |
const int32_t | str_len, | ||
const char * | pattern, | ||
const int32_t | pat_len, | ||
char | escape_char | ||
) |
Definition at line 43 of file StringLike.cpp.
Referenced by StringDictionaryProxy::getLike(), and StringDictionary::getLikeImpl().
RUNTIME_EXPORT DEVICE bool string_lt | ( | const char * | lhs, |
const int32_t | lhs_len, | ||
const char * | rhs, | ||
const int32_t | rhs_len | ||
) |
Definition at line 308 of file StringLike.cpp.
References StringCompare().
Referenced by StringDictionary::getCompare(), StringDictionary::mergeSortedCache(), and StringDictionary::sortCache().
RUNTIME_EXPORT DEVICE bool string_ne | ( | const char * | lhs, |
const int32_t | lhs_len, | ||
const char * | rhs, | ||
const int32_t | rhs_len | ||
) |
Definition at line 343 of file StringLike.cpp.
References StringCompare().
RUNTIME_EXPORT DEVICE int32_t StringCompare | ( | const char * | s1, |
const int32_t | s1_len, | ||
const char * | s2, | ||
const int32_t | s2_len | ||
) |
Definition at line 272 of file StringLike.cpp.
Referenced by string_eq(), string_ge(), string_gt(), string_le(), string_lt(), and string_ne().