summaryrefslogtreecommitdiff
path: root/include/comphelper/string.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-11 18:50:11 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-11 19:01:58 +0200
commitca2fefb8796559b592d1ffd50c8346dcbcb33402 (patch)
treea991ba779dd0cef2820971552e7c12c3683e2c32 /include/comphelper/string.hxx
parent6914b17246f73595c1061502e432d55d9b47d744 (diff)
Add a function to compare version number strings
Change-Id: I88d3d9040f70e84752ade19001a699f60e9e7636
Diffstat (limited to 'include/comphelper/string.hxx')
-rw-r--r--include/comphelper/string.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index 74bc6a11ae0f..b062d7cd2677 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -463,6 +463,15 @@ inline bool isalnumAscii(sal_Unicode c)
return isalphaAscii(c) || isdigitAscii(c);
}
+/** Compare two strings containing software version numbers
+
+ Inspired by the GNU strverscmp(), but there is no guarantee that the exact
+ same semantics are used, or that the semantics are stable between LibreOffice versions.
+
+ @return -1, 0 or 1
+*/
+COMPHELPER_DLLPUBLIC int compareVersionStrings(const OUString& a, const OUString& b);
+
} }
#endif