Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: third_party/liblouis/nacl_wrapper/liblouis_wrapper.cc

Issue 589133002: Make undefined Unicode characters show up in a nicer way in braille. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moretables
Patch Set: Fix typo. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/liblouis/nacl_wrapper/liblouis_wrapper.cc
diff --git a/third_party/liblouis/nacl_wrapper/liblouis_wrapper.cc b/third_party/liblouis/nacl_wrapper/liblouis_wrapper.cc
index 2fff14edf39104e533266e5857d06c51262f8d9e..e3384a803c65de45991bbb6240064eb9b3311541 100644
--- a/third_party/liblouis/nacl_wrapper/liblouis_wrapper.cc
+++ b/third_party/liblouis/nacl_wrapper/liblouis_wrapper.cc
@@ -109,8 +109,8 @@ const char* LibLouisWrapper::tables_dir() const {
return "/liblouis/tables";
}
-bool LibLouisWrapper::CheckTable(const std::string& table_name) {
- return lou_getTable(table_name.c_str()) != NULL;
+bool LibLouisWrapper::CheckTable(const std::string& table_names) {
+ return lou_getTable(table_names.c_str()) != NULL;
}
bool LibLouisWrapper::Translate(const TranslationParams& params,
@@ -152,7 +152,7 @@ bool LibLouisWrapper::Translate(const TranslationParams& params,
outlen = outalloc;
outbuf.resize(outalloc);
braille_to_text.resize(outalloc);
- int result = lou_translate(params.table_name.c_str(),
+ int result = lou_translate(params.table_names.c_str(),
&inbuf[0], &inlen, &outbuf[0], &outlen,
NULL /* typeform */, NULL /* spacing */,
&text_to_braille[0], &braille_to_text[0],
@@ -188,7 +188,7 @@ bool LibLouisWrapper::Translate(const TranslationParams& params,
return true;
}
-bool LibLouisWrapper::BackTranslate(const std::string& table_name,
+bool LibLouisWrapper::BackTranslate(const std::string& table_names,
const std::vector<unsigned char>& cells, std::string* out) {
std::vector<widechar> inbuf;
inbuf.reserve(cells.size());
@@ -215,7 +215,7 @@ bool LibLouisWrapper::BackTranslate(const std::string& table_name,
outbuf.resize(outalloc);
int result = lou_backTranslateString(
- table_name.c_str(), &inbuf[0], &inlen, &outbuf[0], &outlen,
+ table_names.c_str(), &inbuf[0], &inlen, &outbuf[0], &outlen,
NULL /* typeform */, NULL /* spacing */, dotsIO /* mode */);
if (result == 0) {
// TODO(jbroman): log this
« no previous file with comments | « third_party/liblouis/nacl_wrapper/liblouis_wrapper.h ('k') | third_party/liblouis/nacl_wrapper/translation_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698