#include "slap.h"
-int
-slap_index2prefix( int indextype )
-{
- int prefix;
-
- switch ( indextype ) {
- case SLAP_INDEX_EQUALITY:
- prefix = SLAP_INDEX_EQUALITY_PREFIX;
- break;
- case SLAP_INDEX_APPROX:
- prefix = SLAP_INDEX_APPROX_PREFIX;
- break;
- case SLAP_INDEX_SUBSTR:
- prefix = SLAP_INDEX_SUBSTR_PREFIX;
- break;
- default:
- prefix = SLAP_INDEX_UNKNOWN_PREFIX;
- break;
- }
-
- return( prefix );
-}
-
int slap_str2index( const char *str, slap_mask_t *idx )
{
if ( strcasecmp( str, "pres" ) == 0 ) {
#define SLAP_INDEX_SUBSTR_INITIAL_PREFIX '^'
#define SLAP_INDEX_SUBSTR_FINAL_PREFIX '$'
#define SLAP_INDEX_CONT_PREFIX '.' /* prefix for continuation keys */
-#define SLAP_INDEX_UNKNOWN_PREFIX '?' /* prefix for unknown keys */
#define SLAP_SYNTAX_MATCHINGRULES_OID "1.3.6.1.4.1.1466.115.121.1.30"
#define SLAP_SYNTAX_ATTRIBUTETYPES_OID "1.3.6.1.4.1.1466.115.121.1.3"