ICU-4733 Use int32_t instead of int.

X-SVN-Rev: 18462
This commit is contained in:
George Rhoten 2005-08-25 18:02:20 +00:00
parent a61c9afcf0
commit f9e6f15721
2 changed files with 7 additions and 7 deletions

View file

@ -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));
}

View file

@ -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;
/**