• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ICU-511.35/icuSources/i18n/

Lines Matching defs:regexp

324     RegularExpression *regexp = (RegularExpression*)regexp2;
326 if (validateRE(regexp, FALSE, status) == FALSE) {
330 *patLength = regexp->fPatStringLen;
332 return regexp->fPatString;
344 RegularExpression *regexp = (RegularExpression*)regexp2;
345 return regexp->fPat->patternText(*status);
356 RegularExpression *regexp = (RegularExpression*)regexp2;
357 if (validateRE(regexp, FALSE, status) == FALSE) {
360 int32_t flags = regexp->fPat->flags();
375 RegularExpression *regexp = (RegularExpression*)regexp2;
376 if (validateRE(regexp, FALSE, status) == FALSE) {
384 if (regexp->fOwnsText && regexp->fText != NULL) {
385 uprv_free((void *)regexp->fText);
388 regexp->fText = text;
389 regexp->fTextLength = textLength;
390 regexp->fOwnsText = FALSE;
394 regexp->fMatcher->reset(&input);
408 RegularExpression *regexp = (RegularExpression*)regexp2;
409 if (validateRE(regexp, FALSE, status) == FALSE) {
417 if (regexp->fOwnsText && regexp->fText != NULL) {
418 uprv_free((void *)regexp->fText);
421 regexp->fText = NULL; // only fill it in on request
422 regexp->fTextLength = -1;
423 regexp->fOwnsText = TRUE;
424 regexp->fMatcher->reset(text);
438 RegularExpression *regexp = (RegularExpression*)regexp2;
439 if (validateRE(regexp, FALSE, status) == FALSE) {
443 if (regexp->fText == NULL) {
445 UText *inputText = regexp->fMatcher->inputText();
448 regexp->fText = inputText->chunkContents;
449 regexp->fTextLength = (int32_t)inputNativeLength;
450 regexp->fOwnsText = FALSE; // because the UText owns it
453 regexp->fTextLength = utext_extract(inputText, 0, inputNativeLength, NULL, 0, &lengthStatus); // buffer overflow error
454 UChar *inputChars = (UChar *)uprv_malloc(sizeof(UChar)*(regexp->fTextLength+1));
456 utext_extract(inputText, 0, inputNativeLength, inputChars, regexp->fTextLength+1, status);
457 regexp->fText = inputChars;
458 regexp->fOwnsText = TRUE; // should already be set but just in case
463 *textLength = regexp->fTextLength;
465 return regexp->fText;
478 RegularExpression *regexp = (RegularExpression*)regexp2;
479 if (validateRE(regexp, FALSE, status) == FALSE) {
482 return regexp->fMatcher->getInput(dest, *status);
495 RegularExpression *regexp = (RegularExpression*)regexp2;
496 if (validateRE(regexp, FALSE, status) == FALSE) {
499 regexp->fMatcher->refreshInputText(text, *status);
519 RegularExpression *regexp = (RegularExpression*)regexp2;
521 if (validateRE(regexp, TRUE, status) == FALSE) {
525 result = regexp->fMatcher->matches(*status);
527 result = regexp->fMatcher->matches(startIndex, *status);
549 RegularExpression *regexp = (RegularExpression*)regexp2;
551 if (validateRE(regexp, TRUE, status) == FALSE) {
555 result = regexp->fMatcher->lookingAt(*status);
557 result = regexp->fMatcher->lookingAt(startIndex, *status);
580 RegularExpression *regexp = (RegularExpression*)regexp2;
582 if (validateRE(regexp, TRUE, status) == FALSE) {
586 regexp->fMatcher->resetPreserveRegion();
587 result = regexp->fMatcher->find();
589 result = regexp->fMatcher->find(startIndex, *status);
603 RegularExpression *regexp = (RegularExpression*)regexp2;
604 if (validateRE(regexp, TRUE, status) == FALSE) {
607 UBool result = regexp->fMatcher->find();
619 RegularExpression *regexp = (RegularExpression*)regexp2;
620 if (validateRE(regexp, FALSE, status) == FALSE) {
623 int32_t result = regexp->fMatcher->groupCount();
639 RegularExpression *regexp = (RegularExpression*)regexp2;
640 if (validateRE(regexp, TRUE, status) == FALSE) {
648 if (destCapacity == 0 || regexp->fText != NULL) {
655 int32_t startIx = regexp->fMatcher->start(groupNum, *status);
656 int32_t endIx = regexp->fMatcher->end (groupNum, *status);
679 u_memcpy(dest, &regexp->fText[startIx], copyLength);
702 RegularExpression *regexp = (RegularExpression*)regexp2;
703 if (validateRE(regexp, TRUE, status) == FALSE) {
708 return regexp->fMatcher->group(groupNum, dest, *groupLength, *status);
721 RegularExpression *regexp = (RegularExpression*)regexp2;
722 if (validateRE(regexp, TRUE, status) == FALSE) {
727 if (regexp->fText != NULL) {
732 int32_t startIx = regexp->fMatcher->start(groupNum, *status);
733 int32_t endIx = regexp->fMatcher->end (groupNum, *status);
740 utext_replace(dest, 0, utext_nativeLength(dest), &regexp->fText[startIx], endIx - startIx, status);
743 utext_openUChars(&groupText, &regexp->fText[startIx], endIx - startIx, status);
750 return regexp->fMatcher->group(groupNum, dest, *status);
770 RegularExpression *regexp = (RegularExpression*)regexp2;
771 if (validateRE(regexp, TRUE, status) == FALSE) {
774 int32_t result = regexp->fMatcher->start(groupNum, *status);
794 RegularExpression *regexp = (RegularExpression*)regexp2;
795 if (validateRE(regexp, TRUE, status) == FALSE) {
798 int32_t result = regexp->fMatcher->end(groupNum, *status);
818 RegularExpression *regexp = (RegularExpression*)regexp2;
819 if (validateRE(regexp, TRUE, status) == FALSE) {
822 regexp->fMatcher->reset(index, *status);
844 RegularExpression *regexp = (RegularExpression*)regexp2;
845 if (validateRE(regexp, TRUE, status) == FALSE) {
848 regexp->fMatcher->region(regionStart, regionLimit, *status);
863 RegularExpression *regexp = (RegularExpression*)regexp2;
864 if (validateRE(regexp, TRUE, status) == FALSE) {
867 regexp->fMatcher->region(regionStart, regionLimit, startIndex, *status);
884 RegularExpression *regexp = (RegularExpression*)regexp2;
885 if (validateRE(regexp, TRUE, status) == FALSE) {
888 return regexp->fMatcher->regionStart();
906 RegularExpression *regexp = (RegularExpression*)regexp2;
907 if (validateRE(regexp, TRUE, status) == FALSE) {
910 return regexp->fMatcher->regionEnd();
922 RegularExpression *regexp = (RegularExpression*)regexp2;
923 if (validateRE(regexp, FALSE, status) == FALSE) {
926 return regexp->fMatcher->hasTransparentBounds();
939 RegularExpression *regexp = (RegularExpression*)regexp2;
940 if (validateRE(regexp, FALSE, status) == FALSE) {
943 regexp->fMatcher->useTransparentBounds(b);
955 RegularExpression *regexp = (RegularExpression*)regexp2;
956 if (validateRE(regexp, FALSE, status) == FALSE) {
959 return regexp->fMatcher->hasAnchoringBounds();
972 RegularExpression *regexp = (RegularExpression*)regexp2;
973 if (validateRE(regexp, FALSE, status) == FALSE) {
976 regexp->fMatcher->useAnchoringBounds(b);
988 RegularExpression *regexp = (RegularExpression*)regexp2;
989 if (validateRE(regexp, TRUE, status) == FALSE) {
992 return regexp->fMatcher->hitEnd();
1004 RegularExpression *regexp = (RegularExpression*)regexp2;
1005 if (validateRE(regexp, TRUE, status) == FALSE) {
1008 return regexp->fMatcher->requireEnd();
1021 RegularExpression *regexp = (RegularExpression*)regexp2;
1022 if (validateRE(regexp, FALSE, status)) {
1023 regexp->fMatcher->setTimeLimit(limit, *status);
1038 RegularExpression *regexp = (RegularExpression*)regexp2;
1039 if (validateRE(regexp, FALSE, status)) {
1040 retVal = regexp->fMatcher->getTimeLimit();
1056 RegularExpression *regexp = (RegularExpression*)regexp2;
1057 if (validateRE(regexp, FALSE, status)) {
1058 regexp->fMatcher->setStackLimit(limit, *status);
1073 RegularExpression *regexp = (RegularExpression*)regexp2;
1074 if (validateRE(regexp, FALSE, status)) {
1075 retVal = regexp->fMatcher->getStackLimit();
1091 RegularExpression *regexp = (RegularExpression*)regexp2;
1092 if (validateRE(regexp, FALSE, status)) {
1093 regexp->fMatcher->setMatchCallback(callback, context, *status);
1108 RegularExpression *regexp = (RegularExpression*)regexp2;
1109 if (validateRE(regexp, FALSE, status)) {
1110 regexp->fMatcher->getMatchCallback(*callback, *context, *status);
1125 RegularExpression *regexp = (RegularExpression*)regexp2;
1126 if (validateRE(regexp, FALSE, status)) {
1127 regexp->fMatcher->setFindProgressCallback(callback, context, *status);
1142 RegularExpression *regexp = (RegularExpression*)regexp2;
1143 if (validateRE(regexp, FALSE, status)) {
1144 regexp->fMatcher->getFindProgressCallback(*callback, *context, *status);
1161 RegularExpression *regexp = (RegularExpression*)regexp2;
1162 if (validateRE(regexp, TRUE, status) == FALSE) {
1209 RegularExpression *regexp = (RegularExpression*)regexp2;
1210 if (validateRE(regexp, TRUE, status) == FALSE) {
1218 dest = regexp->fMatcher->replaceAll(replacementText, dest, *status);
1235 RegularExpression *regexp = (RegularExpression*)regexp2;
1236 if (validateRE(regexp, TRUE, status) == FALSE) {
1270 RegularExpression *regexp = (RegularExpression*)regexp2;
1271 if (validateRE(regexp, TRUE, status) == FALSE) {
1279 dest = regexp->fMatcher->replaceFirst(replacementText, dest, *status);
1297 inline static int32_t appendReplacement(RegularExpression *regexp,
1304 inline static int32_t appendTail(RegularExpression *regexp,
1309 inline static int32_t split(RegularExpression *regexp,
1341 int32_t RegexCImpl::appendReplacement(RegularExpression *regexp,
1360 if (validateRE(regexp, TRUE, status) == FALSE) {
1371 RegexMatcher *m = regexp->fMatcher;
1390 if (regexp->fText != NULL) {
1404 appendToBuf(regexp->fText[i], &destIdx, dest, capacity);
1500 destIdx += uregex_group((URegularExpression*)regexp, groupNum,
1562 RegularExpression *regexp = (RegularExpression*)regexp2;
1564 regexp, replacementText, replacementLength,destBuf, destCapacity, status);
1575 RegularExpression *regexp = (RegularExpression*)regexp2;
1576 regexp->fMatcher->appendReplacement(dest, replText, *status);
1585 int32_t RegexCImpl::appendTail(RegularExpression *regexp,
1600 if (validateRE(regexp, TRUE, status) == FALSE) {
1612 RegexMatcher *m = regexp->fMatcher;
1618 if (regexp->fText != NULL) {
1633 if (srcIdx == regexp->fTextLength) {
1636 UChar c = regexp->fText[srcIdx];
1637 if (c == 0 && regexp->fTextLength == -1) {
1638 regexp->fTextLength = srcIdx;
1648 if (regexp->fTextLength > 0) {
1649 destIdx += (regexp->fTextLength - srcIdx);
1715 RegularExpression *regexp = (RegularExpression*)regexp2;
1716 return RegexCImpl::appendTail(regexp, destBuf, destCapacity, status);
1727 RegularExpression *regexp = (RegularExpression*)regexp2;
1728 return regexp->fMatcher->appendTail(dest, *status);
1775 int32_t RegexCImpl::split(RegularExpression *regexp,
1785 regexp->fMatcher->reset();
1786 UText *inputText = regexp->fMatcher->fInputText;
1788 int64_t inputLen = regexp->fMatcher->fInputLength;
1798 int32_t numCaptureGroups = regexp->fMatcher->groupCount();
1823 if (regexp->fMatcher->find()) {
1828 destIdx += 1 + utext_extract(inputText, nextOutputStringStart, regexp->fMatcher->fMatchStart,
1835 nextOutputStringStart = regexp->fMatcher->fMatchEnd;
1850 int32_t t = uregex_group((URegularExpression*)regexp,
1918 RegularExpression *regexp = (RegularExpression*)regexp2;
1919 if (validateRE(regexp, TRUE, status) == FALSE) {
1930 return RegexCImpl::split(regexp, destBuf, destCapacity, requiredCapacity, destFields, destFieldsCapacity, status);
1942 RegularExpression *regexp = (RegularExpression*)regexp2;
1943 return regexp->fMatcher->split(regexp->fMatcher->inputText(), destFields, destFieldsCapacity, *status);