You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/tdecore/tequivchars.h

27 lines
853 B
C++

#ifndef TEQUIVCHARS_H
#define TEQUIVCHARS_H
#include "tdelibs_export.h"
#include <tqstring.h>
/**
* Class representing a mapping of each alphanumeric character to its "collating
* equivalent" as defined by the Default Unicode Collation Entity Table (DUCET).
* The mapping is limited to single-codepoint characters <= U+FFFF.
*/
class TDECORE_EXPORT TEquivChars
{
public:
/**
@return copy of @param inputString modified such that each alphanumeric
character is replaced with it's collating character equivalent. If the
value @param isRegex is true, the input string is treated as a regular
expression and the alphabetical characters inside Posix bracket [::]
expressions are left as-is
*/
static const TQString replaceChars( const TQString &inputString, bool isRegex = false );
};
#endif // TEQUIVCHARS_H