/*
**********************************************************************
-* Copyright (C) 2004-2015, International Business Machines
+* Copyright (C) 2004-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* file name: uregex.h
*
* <p>If the match succeeds then more information can be obtained via the
* <code>uregexp_start()</code>, <code>uregexp_end()</code>,
- * and <code>uregexp_group()</code> functions.</p>
+ * and <code>uregex_group()</code> functions.</p>
*
* @param regexp The compiled regular expression.
* @param startIndex The input string (native) index at which to begin matching, or
*
* <p>If the match succeeds then more information can be obtained via the
* <code>uregexp_start()</code>, <code>uregexp_end()</code>,
- * and <code>uregexp_group()</code> functions.</p>
+ * and <code>uregex_group()</code> functions.</p>
*
* @param regexp The compiled regular expression.
* @param startIndex The input string (native) index at which to begin matching, or
uregex_groupCount(URegularExpression *regexp,
UErrorCode *status);
-#ifndef U_HIDE_DRAFT_API
/**
* Get the group number corresponding to a named capture group.
* The returned number can be used with any function that access
* nul-terminated string.
* @param status A pointer to a UErrorCode to receive any errors.
*
- * @draft ICU 55
+ * @stable ICU 55
*/
-U_DRAFT int32_t U_EXPORT2
+U_STABLE int32_t U_EXPORT2
uregex_groupNumberFromName(URegularExpression *regexp,
const UChar *groupName,
int32_t nameLength,
* nul-terminated.
* @param status A pointer to a UErrorCode to receive any errors.
*
- * @draft ICU 55
+ * @stable ICU 55
*/
-U_DRAFT int32_t U_EXPORT2
+U_STABLE int32_t U_EXPORT2
uregex_groupNumberFromCName(URegularExpression *regexp,
const char *groupName,
int32_t nameLength,
UErrorCode *status);
-#endif /* U_HIDE_DRAFT_API */
/** Extract the string for the specified matching expression or subexpression.
* Group #0 is the complete string of matched text.