summaryrefslogtreecommitdiff
path: root/deps/icu-small/source/common/patternprops.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/icu-small/source/common/patternprops.h')
-rw-r--r--deps/icu-small/source/common/patternprops.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/icu-small/source/common/patternprops.h b/deps/icu-small/source/common/patternprops.h
index a42eb3c244..b57cdeb6e5 100644
--- a/deps/icu-small/source/common/patternprops.h
+++ b/deps/icu-small/source/common/patternprops.h
@@ -17,6 +17,7 @@
#ifndef __PATTERNPROPS_H__
#define __PATTERNPROPS_H__
+#include "unicode/unistr.h"
#include "unicode/utypes.h"
U_NAMESPACE_BEGIN
@@ -64,6 +65,12 @@ public:
static const UChar *skipWhiteSpace(const UChar *s, int32_t length);
/**
+ * Skips over Pattern_White_Space starting at index start in s.
+ * @return The smallest index at or after start with a non-white space character.
+ */
+ static int32_t skipWhiteSpace(const UnicodeString &s, int32_t start);
+
+ /**
* @return s except with leading and trailing Pattern_White_Space removed and length adjusted.
*/
static const UChar *trimWhiteSpace(const UChar *s, int32_t &length);