5.25 Syntax Matching Flags

The NWDSReadSyntaxDef and NWDSGetSyntaxDef functions use a Syntax_Info_T structure to return information about syntax definitions. The structure uses the following flags to return information about the syntax's matching rules. These flags are ORed together when multiple flags apply to a syntax.

Flag

C Value

Description

DS_STRING

0x0001

Indicates that the syntax can contain string values and therefore attributes with this syntax can be used as naming attributes.

DS_SINGLE_VALUED

0x0002

Indicates that attributes using this syntax can have only one value.

DS_SUPPORTS_ORDER

0x0004

Indicates that attributes using this syntax must be open to comparisons of less than, equal to, and greater than.

DS_SUPPORTS_EQUAL

0x0008

Indicates that attributes using this syntax match for equality when all of the following conditions are met. The attributes' values are identical; the attributes use the same syntax, and the attributes' data type conforms to the syntax.

DS_IGNORE_CASE

0x0010

Indicates that attributes using this syntax ignore case during comparisons.

DS_IGNORE_SPACE

0x0020

Indicates that attributes using this syntax ignore extra space during comparisons.

DS_IGNORE_DASH

0x0040

Indicates that attributes using this syntax ignore dashes during comparisons.

DS_ONLY_DIGITS

0x0080

Indicates that attributes using this syntax must support only digits in their values.

DS_ONLY_PRINTABLE

0x0100

Indicates that attributes using this syntax must support only printable characters in their values. For a list of these characters, see the Printable String syntax.

DS_SIZEABLE

0x0200

Indicates that attributes using this syntax must set upper and lower limits to their values.

DS_BITWISE_EQUAL

0x0400

Indicates that attributes using this syntax support substring (wildcard) and approximate matching.