]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ruleiter.h
ICU-64243.0.1.tar.gz
[apple/icu.git] / icuSources / common / ruleiter.h
index 5c86020bd8b2f799e26eb865554bb758d5bd1aa3..4e1be53823d78a63ec8952d0f90269096f8a1f14 100644 (file)
@@ -1,6 +1,8 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 **********************************************************************
-* Copyright (c) 2003-2006, International Business Machines
+* Copyright (c) 2003-2011, International Business Machines
 * Corporation and others.  All Rights Reserved.
 **********************************************************************
 * Author: Alan Liu
@@ -82,9 +84,8 @@ public:
 
     /**
      * Bitmask option to enable skipping of whitespace.  If (options &
-     * SKIP_WHITESPACE) != 0, then whitespace characters will be silently
-     * skipped, as if they were not present in the input.  Whitespace
-     * characters are defined by UCharacterProperty.isRuleWhiteSpace().
+     * SKIP_WHITESPACE) != 0, then Pattern_White_Space characters will be silently
+     * skipped, as if they were not present in the input.
      */
     enum { SKIP_WHITESPACE = 4 };
 
@@ -186,9 +187,10 @@ public:
      * resynchronize the iterator.
      * @param result a string to receive the characters to be returned
      * by future calls to next()
+     * @param maxLookAhead The maximum to copy into the result.
      * @return a reference to result
      */
-    UnicodeString& lookahead(UnicodeString& result) const;
+    UnicodeString& lookahead(UnicodeString& result, int32_t maxLookAhead = -1) const;
 
     /**
      * Advances the position by the given number of 16-bit code units.