summaryrefslogtreecommitdiff
path: root/src/misc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.cxx')
-rw-r--r--src/misc.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/misc.cxx b/src/misc.cxx
index 7a814a6..8c9d2e0 100644
--- a/src/misc.cxx
+++ b/src/misc.cxx
@@ -98,6 +98,17 @@ GetLocale ()
return gettext ("en");
}
+bool
+IsRightReading (const char * text)
+{
+ auto isRight = false;
+ if (text)
+ isRight = strchr (text, 0xD7) != nullptr;
+ else
+ isRight = GetLocale () == "he";
+ return isRight;
+}
+
// Retourne le nom de dossier en cours.
std::string