Commit 508890e7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add telephone number indexing support (reuse only)

parent a43cc024
...@@ -84,6 +84,11 @@ ...@@ -84,6 +84,11 @@
#define integerIndexer caseIgnoreIA5Indexer #define integerIndexer caseIgnoreIA5Indexer
#define integerFilter caseIgnoreIA5Filter #define integerFilter caseIgnoreIA5Filter
#define telephoneNumberIndexer caseIgnoreIA5Indexer
#define telephoneNumberFilter caseIgnoreIA5Filter
#define telephoneNumberSubstringsIndexer caseIgnoreIA5SubstringsIndexer
#define telephoneNumberSubstringsFilter caseIgnoreIA5SubstringsFilter
static char *strcasechr( const char *str, int c ) static char *strcasechr( const char *str, int c )
{ {
char *lower = strchr( str, TOLOWER(c) ); char *lower = strchr( str, TOLOWER(c) );
...@@ -4477,14 +4482,18 @@ struct mrule_defs_rec mrule_defs[] = { ...@@ -4477,14 +4482,18 @@ struct mrule_defs_rec mrule_defs[] = {
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )", "SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )",
SLAP_MR_EQUALITY | SLAP_MR_EXT, SLAP_MR_EQUALITY | SLAP_MR_EXT,
NULL, NULL, NULL, NULL,
telephoneNumberMatch, NULL, NULL, telephoneNumberMatch,
telephoneNumberIndexer,
telephoneNumberFilter,
NULL}, NULL},
{"( 2.5.13.21 NAME 'telephoneNumberSubstringsMatch' " {"( 2.5.13.21 NAME 'telephoneNumberSubstringsMatch' "
"SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )", "SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )",
SLAP_MR_SUBSTR | SLAP_MR_EXT, SLAP_MR_SUBSTR | SLAP_MR_EXT,
NULL, NULL, NULL, NULL,
telephoneNumberSubstringsMatch, NULL, NULL, telephoneNumberSubstringsMatch,
telephoneNumberSubstringsIndexer,
telephoneNumberSubstringsFilter,
NULL}, NULL},
{"( 2.5.13.22 NAME 'presentationAddressMatch' " {"( 2.5.13.22 NAME 'presentationAddressMatch' "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment