Skip to content

Commit

Permalink
Remove romaji-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EIREXE committed Dec 14, 2021
1 parent 7c9f9fa commit 4219615
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 600 deletions.
Empty file added core/XX0w161B
Empty file.
5 changes: 1 addition & 4 deletions modules/hbnative/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ sources = [

env_thirdparty = env.Clone()

thirdparty_sources = [
"thirdparty/romaji-cpp/utf8.cpp",
"thirdparty/romaji-cpp/romaji.cpp",
]
thirdparty_sources = []

env_thirdparty.disable_warnings()
env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
Expand Down
10 changes: 2 additions & 8 deletions modules/hbnative/hbnative_singleton.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "hbnative_singleton.h"
#include "thirdparty/romaji-cpp/romaji.h"

HBNativeSingleton *HBNativeSingleton::singleton = nullptr;

Expand All @@ -12,10 +11,5 @@ void HBNativeSingleton::_bind_methods() {
}

String HBNativeSingleton::romanize(String source) {
std::wstring wstr = source.c_str();
std::string out_str;
japanese::utf8_kana_to_romaji(source.utf8().get_data(), out_str);
String str_o;
str_o.parse_utf8(out_str.c_str(), out_str.length());
return str_o;
}
return source;
}
2 changes: 1 addition & 1 deletion modules/hbnative/hbnative_singleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ class HBNativeSingleton : public Object {
HBNativeSingleton();
};

#endif
#endif
20 changes: 0 additions & 20 deletions modules/hbnative/thirdparty/romaji-cpp/LICENSE

This file was deleted.

71 changes: 0 additions & 71 deletions modules/hbnative/thirdparty/romaji-cpp/README.md

This file was deleted.

Loading

0 comments on commit 4219615

Please sign in to comment.