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

UnicodeSet *U_EXPORT2 UnicodeSet::createFromAll ( const UnicodeString s  )  [static]

Makes a set from each of the characters in the string. Thus "ch" => {"c", "h"}

Parameters:
s the source string
Returns:
a newly created set containing the given characters The caller owns the return object and is responsible for deleting it. ICU 2.4
Makes a set from each of the characters in the string. Thus "ch" => {"c", "h"}
Parameters:
the source string
Returns:
a newly created set containing the given characters

Definition at line 1134 of file uniset.cpp.

References NULL, and UnicodeSet().

                                                                      {
    UnicodeSet *set = new UnicodeSet();
    if (set != NULL) { // Check for memory allocation error.
        set->addAll(s);
    }
    return set;
}


Generated by  Doxygen 1.6.0   Back to index