- int32_t parseFrom(const UnicodeString& str, UErrorCode& status) { return parseFrom(str,NULL,status); }
-
- public:
- int32_t parseFrom(const UnicodeString& str, const FieldsSet& inheritFrom, UErrorCode& status) { return parseFrom(str, &inheritFrom, status); }
-
- int32_t parseFrom(const UnicodeString& str, const
- FieldsSet* inheritFrom, UErrorCode& status);
-
+ int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str, UErrorCode& status) {
+ return parseFrom(str,NULL,status);
+ }
+
+ /**
+ * Fill-in fields from a specified string, such as "NAME1=VALUE1,NAME2=VALUE2", etc.
+ * @param inheritFrom if a field's value is given as 0-length, such as NAME1 in "NAME1=,NAME2=VALUE2",
+ * the specified FieldsSet's value for NAME1 will be copied into this.
+ * @param str string to parse
+ * @param status status of parse
+ * @return the number of valid parsed fields on success, or a negative number on failure.
+ */
+ int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str,
+ const FieldsSet& inheritFrom,
+ UErrorCode& status) {
+ return parseFrom(str, &inheritFrom, status);
+ }
+
+ /**
+ * Fill-in fields from a specified string, such as "NAME1=VALUE1,NAME2=VALUE2", etc.
+ * @param inheritFrom if a field's value is given as 0-length, such as NAME1 in "NAME1=,NAME2=VALUE2",
+ * the specified FieldsSet's value for NAME1 will be copied into this.
+ * @param str string to parse
+ * @param status status of parse
+ * @return the number of valid parsed fields on success, or a negative number on failure.
+ */
+ int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str,
+ const FieldsSet* inheritFrom,
+ UErrorCode& status);
+