mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-4733 Use int32_t instead of int.
X-SVN-Rev: 18462
This commit is contained in:
parent
a61c9afcf0
commit
f9e6f15721
2 changed files with 7 additions and 7 deletions
|
@ -271,7 +271,7 @@ int32_t RegexMatcher::end(UErrorCode &err) const {
|
|||
|
||||
|
||||
|
||||
int32_t RegexMatcher::end(int group, UErrorCode &err) const {
|
||||
int32_t RegexMatcher::end(int32_t group, UErrorCode &err) const {
|
||||
if (U_FAILURE(err)) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -793,7 +793,7 @@ int32_t RegexMatcher::split(const UnicodeString &input,
|
|||
//
|
||||
// Loop through the input text, searching for the delimiter pattern
|
||||
//
|
||||
int i;
|
||||
int32_t i;
|
||||
int32_t numCaptureGroups = fPattern->fGroupMap->size();
|
||||
for (i=0; ; i++) {
|
||||
if (i>=destCapacity-1) {
|
||||
|
@ -859,7 +859,7 @@ int32_t RegexMatcher::start(UErrorCode &status) const {
|
|||
|
||||
|
||||
|
||||
int32_t RegexMatcher::start(int group, UErrorCode &status) const {
|
||||
int32_t RegexMatcher::start(int32_t group, UErrorCode &status) const {
|
||||
if (U_FAILURE(status)) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -911,7 +911,7 @@ REStackFrame *RegexMatcher::resetStack() {
|
|||
fStack->removeAllElements();
|
||||
|
||||
int32_t *iFrame = fStack->reserveBlock(fPattern->fFrameSize, fDeferredStatus);
|
||||
int i;
|
||||
int32_t i;
|
||||
for (i=0; i<fPattern->fFrameSize; i++) {
|
||||
iFrame[i] = -1;
|
||||
}
|
||||
|
@ -1049,7 +1049,7 @@ void RegexMatcher::MatchAt(int32_t startIdx, UErrorCode &status) {
|
|||
{
|
||||
printf("MatchAt(startIdx=%d)\n", startIdx);
|
||||
printf("Original Pattern: ");
|
||||
int i;
|
||||
int32_t i;
|
||||
for (i=0; i<fPattern->fPattern.length(); i++) {
|
||||
printf("%c", fPattern->fPattern.charAt(i));
|
||||
}
|
||||
|
|
|
@ -652,7 +652,7 @@ public:
|
|||
* @return the start position of substring matched by the specified group.
|
||||
* @stable ICU 2.4
|
||||
*/
|
||||
virtual int32_t start(int group, UErrorCode &status) const;
|
||||
virtual int32_t start(int32_t group, UErrorCode &status) const;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -680,7 +680,7 @@ public:
|
|||
* Return -1 if the capture group exists in the pattern but was not part of the match.
|
||||
* @stable ICU 2.4
|
||||
*/
|
||||
virtual int32_t end(int group, UErrorCode &status) const;
|
||||
virtual int32_t end(int32_t group, UErrorCode &status) const;
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue