]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/util.h
ICU-64252.0.1.tar.gz
[apple/icu.git] / icuSources / common / util.h
index 7cb2c5a2e74c08c3bcf0f9d48c6b34e8cd3af7fa..e197cab7882842a14d6fa11b9fb0dd9ca94ddbcb 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  **********************************************************************
  *   Copyright (c) 2001-2011, International Business Machines
@@ -44,6 +46,13 @@ class U_COMMON_API ICU_Utility /* not : public UObject because all methods are s
                                        int32_t radix = 10,
                                        int32_t minDigits = 1);
 
+    /** Returns a bogus UnicodeString by value. */
+    static inline UnicodeString makeBogusString() {
+        UnicodeString result;
+        result.setToBogus();
+        return result;
+    }
+
     /**
      * Return true if the character is NOT printable ASCII.
      *