REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.90 KB
Close
/proc/thread-self/root/opt/alt/libicu65/usr/share/doc/alt-libicu65-devel/samples/translit/unaccent.h
Text
Base64
/*********************************************************************** * © 2016 and later: Unicode, Inc. and others. * License & terms of use: http://www.unicode.org/copyright.html#License *********************************************************************** *********************************************************************** * COPYRIGHT: * Copyright (c) 1999-2003, International Business Machines Corporation and * others. All Rights Reserved. ***********************************************************************/ #include "unicode/translit.h" #include "unicode/normlzr.h" using namespace icu; class UnaccentTransliterator : public Transliterator { public: /** * Constructor */ UnaccentTransliterator(); /** * Destructor */ virtual ~UnaccentTransliterator(); protected: /** * Implement Transliterator API */ virtual void handleTransliterate(Replaceable& text, UTransPosition& index, UBool incremental) const; private: /** * Unaccent a single character using normalizer. */ UChar unaccent(UChar c) const; Normalizer normalizer; public: /** * Return the class ID for this class. This is useful only for * comparing to a return value from getDynamicClassID(). For example: * <pre> * . Base* polymorphic_pointer = createPolymorphicObject(); * . if (polymorphic_pointer->getDynamicClassID() == * . Derived::getStaticClassID()) ... * </pre> * @return The class ID for all objects of this class. * @stable ICU 2.0 */ static inline UClassID getStaticClassID(void) { return (UClassID)&fgClassID; }; /** * Returns a unique class ID <b>polymorphically</b>. This method * is to implement a simple version of RTTI, since not all C++ * compilers support genuine RTTI. Polymorphic operator==() and * clone() methods call this method. * * <p>Concrete subclasses of Transliterator that wish clients to * be able to identify them should implement getDynamicClassID() * and also a static method and data member: * * <pre> * static UClassID getStaticClassID() { return (UClassID)&fgClassID; } * static char fgClassID; * </pre> * * Subclasses that do not implement this method will have a * dynamic class ID of Transliterator::getStatisClassID(). * * @return The class ID for this object. All objects of a given * class have the same class ID. Objects of other classes have * different class IDs. * @stable ICU 2.0 */ virtual UClassID getDynamicClassID(void) const { return getStaticClassID(); }; private: /** * Class identifier for subclasses of Transliterator that do not * define their class (anonymous subclasses). */ static const char fgClassID; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
answers
DIR
-
drwxr-xr-x
2026-06-06 07:00:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
main.cpp
3.92 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Makefile
638 B
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.TXT
3.83 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
translit.sln
1.18 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
translit.vcxproj
9.12 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
translit.vcxproj.filters
1.15 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unaccent.cpp
1.74 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unaccent.h
2.90 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
util.cpp
2.24 KB
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
util.h
880 B
lrw-r--r--
2019-10-03 11:16:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).