summaryrefslogtreecommitdiffstats
path: root/include/rtl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-01-14 22:18:20 +0200
committerTor Lillqvist <tml@collabora.com>2021-01-15 08:48:20 +0100
commit846bcc5adb82b601937681da7cec96c40253c2e7 (patch)
tree065454e0849339befa7a408943c30ed688befbe9 /include/rtl
parentjsdialog: TreeView row activation (diff)
downloadcore-846bcc5adb82b601937681da7cec96c40253c2e7.tar.gz
core-846bcc5adb82b601937681da7cec96c40253c2e7.zip
OUString::matchAsciiL() can be used instead of the fresh startsWithAsciiL()
Revert the addition of the latter. Change-Id: I93636a901cde401b0b7d923e052887f57dd58212 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109315 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/rtl')
-rw-r--r--include/rtl/ustring.hxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index 3a7f8bd5654f..ee3cfe170555 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -1420,26 +1420,6 @@ public:
}
/**
- Check whether this string starts with a given ASCII string.
-
- @param asciiStr a sequence of at least asciiStrLength ASCII characters
- (bytes in the range 0x00--0x7F)
- @param asciiStrLength the length of asciiStr; must be non-negative
- @return true if this string starts with asciiStr; otherwise, false is
- returned
-
- @since LibreOffice 7.2
- */
- bool startsWithAsciiL(char const * asciiStr, sal_Int32 asciiStrLength)
- const
- {
- return asciiStrLength <= pData->length
- && rtl_ustr_asciil_reverseEquals_WithLength(
- pData->buffer, asciiStr,
- asciiStrLength);
- }
-
- /**
Check whether this string starts with a given string, ignoring the case of
ASCII letters.