Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
}
+/*
+ *-----------------------------------------------------------------------------
+ *
+ * utf::string::isASCII --
+ *
+ * Test if every character in the string is in the ASCII range.
+ *
+ * Results:
+ * true if all ASCII, otherwise false.
+ *
+ * Side effects:
+ * None
+ *
+ *-----------------------------------------------------------------------------
+ */
+
+bool
+string::isASCII()
+ const
+{
+ return mUstr.is_ascii();
+}
+
+
/*
*-----------------------------------------------------------------------------
*
void swap(string &s);
void resize(size_type n, value_type c = '\0');
bool empty() const;
+ bool isASCII() const;
size_type size() const;
size_type w_size() const;
size_type length() const;