Server IP : 68.65.120.251 / Your IP : 18.216.51.7 [ Web Server : LiteSpeed System : Linux server105.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : travtpib ( 6521) PHP Version : 7.4.33 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/libicu/usr/share/doc/alt-libicu-devel/samples/translit/answers/ |
Upload File : |
/*********************************************************************** * © 2016 and later: Unicode, Inc. and others. * License & terms of use: http://www.unicode.org/copyright.html#License *********************************************************************** *********************************************************************** * COPYRIGHT: * Copyright (c) 1999-2002, International Business Machines Corporation and * others. All Rights Reserved. ***********************************************************************/ #include "unicode/translit.h" #include "unicode/normlzr.h" 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; };