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

U_STABLE USpoofChecker* U_EXPORT2 uspoof_open ( UErrorCode status  ) 

Create a Unicode Spoof Checker, configured to perform all checks except for USPOOF_LOCALE_LIMIT and USPOOF_CHAR_LIMIT. Note that additional checks may be added in the future, resulting in the changes to the default checking behavior.

Parameters:
status The error code, set if this function encounters a problem.
Returns:
the newly created Spoof Checker ICU 4.2

Definition at line 34 of file uspoof.cpp.

References NULL, and U_FAILURE.

                                {
    if (U_FAILURE(*status)) {
        return NULL;
    }
    SpoofImpl *si = new SpoofImpl(SpoofData::getDefault(*status), *status);
    if (U_FAILURE(*status)) {
        delete si;
        si = NULL;
    }
    return (USpoofChecker *)si;
}


Generated by  Doxygen 1.6.0   Back to index