summaryrefslogtreecommitdiff
path: root/l10ntools/source/helper.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-10 10:44:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-10 10:45:58 +0100
commit718ce84a06f18a3000d23287a2238a5a5299627a (patch)
tree5e445f530282a323b9aa75b78376209ecc3ab941 /l10ntools/source/helper.hxx
parent71530f9cb01ade01505f4a5418fed28af76c8429 (diff)
Various more l10ntools clean up
"localize" is now directly a C++ program w/o wrapper script. Also, its command line has changed slightly, taking the source root as explicit argument (instead of implicitly as cwd).
Diffstat (limited to 'l10ntools/source/helper.hxx')
-rw-r--r--l10ntools/source/helper.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/l10ntools/source/helper.hxx b/l10ntools/source/helper.hxx
index edd2d0fa3be1..48f74a53541b 100644
--- a/l10ntools/source/helper.hxx
+++ b/l10ntools/source/helper.hxx
@@ -79,6 +79,14 @@ inline bool endsWith(rtl::OString const & text, rtl::OString const & search) {
&& text.match(search, text.getLength() - search.getLength());
}
+inline bool endsWithAsciiL(
+ rtl::OUString const & text, char const * search, sal_Int32 searchLength)
+{
+ return text.getLength() >= searchLength
+ && text.matchAsciiL(
+ search, searchLength, text.getLength() - searchLength);
+}
+
inline rtl::OString trimAscii(rtl::OString const & text) {
sal_Int32 i1 = 0;
while (i1 != text.getLength() && isAsciiWhitespace(text[i1])) {