Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE void U_EXPORT2 uset_applyPropertyAlias ( USet set,
const UChar *  prop,
int32_t  propLength,
const UChar *  value,
int32_t  valueLength,
UErrorCode ec 
)

Modifies the set to contain those code points which have the given value for the given property. Prior contents of this set are lost. A frozen set will not be modified.

Parameters:
set the object to contain the code points defined by the given property and value alias
prop a string specifying a property alias, either short or long. The name is matched loosely. See PropertyAliases.txt for names and a description of loose matching. If the value string is empty, then this string is interpreted as either a General_Category value alias, a Script value alias, a binary property alias, or a special ID. Special IDs are matched loosely and correspond to the following sets:
"ANY" = [\u0000-\U0010FFFF], "ASCII" = [\u0000-\u007F], "Assigned" = [:^Cn:].

Parameters:
propLength the length of the prop, or -1 if NULL
value a string specifying a value alias, either short or long. The name is matched loosely. See PropertyValueAliases.txt for names and a description of loose matching. In addition to aliases listed, numeric values and canonical combining classes may be expressed numerically, e.g., ("nv", "0.5") or ("ccc", "220"). The value string may also be empty.
valueLength the length of the value, or -1 if NULL
ec error code input/output parameter
ICU 3.2

Definition at line 106 of file uset_props.cpp.

                            {

    UnicodeString p(prop, propLength);
    UnicodeString v(value, valueLength);

    ((UnicodeSet*) set)->applyPropertyAlias(p, v, *ec);
}


Generated by  Doxygen 1.6.0   Back to index