ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/libicu-devel/samples/translit
/
usr
share
doc
libicu-devel
samples
translit
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
answers
-
chmod
Open
Rename
Delete
main.cpp
3.92 MB
chmod
View
DL
Edit
Rename
Delete
Makefile
638 B
chmod
View
DL
Edit
Rename
Delete
README.TXT
3.83 MB
chmod
View
DL
Edit
Rename
Delete
translit.sln
1.18 MB
chmod
View
DL
Edit
Rename
Delete
translit.vcxproj
9.12 MB
chmod
View
DL
Edit
Rename
Delete
translit.vcxproj.filters
1.15 MB
chmod
View
DL
Edit
Rename
Delete
unaccent.cpp
1.74 MB
chmod
View
DL
Edit
Rename
Delete
unaccent.h
2.9 MB
chmod
View
DL
Edit
Rename
Delete
util.cpp
2.24 MB
chmod
View
DL
Edit
Rename
Delete
util.h
880 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/libicu-devel/samples/translit/unaccent.cpp
/********************************************************************** * © 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 "unaccent.h" const char UnaccentTransliterator::fgClassID = 0; /** * Constructor */ UnaccentTransliterator::UnaccentTransliterator() : normalizer("", UNORM_NFD), Transliterator("Unaccent", 0) { } /** * Destructor */ UnaccentTransliterator::~UnaccentTransliterator() { } /** * Remove accents from a character using Normalizer. */ UChar UnaccentTransliterator::unaccent(UChar c) const { UnicodeString str(c); UErrorCode status = U_ZERO_ERROR; UnaccentTransliterator* t = (UnaccentTransliterator*)this; t->normalizer.setText(str, status); if (U_FAILURE(status)) { return c; } return (UChar) t->normalizer.next(); } /** * Implement Transliterator API */ void UnaccentTransliterator::handleTransliterate(Replaceable& text, UTransPosition& index, UBool incremental) const { UnicodeString str("a"); while (index.start < index.limit) { UChar c = text.charAt(index.start); UChar d = unaccent(c); if (c != d) { str.setCharAt(0, d); text.handleReplaceBetween(index.start, index.start+1, str); } index.start++; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply