• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/

Lines Matching +defs:split +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);
705 RegularExpression *regexp = (RegularExpression*)regexp2;
706 if (validateRE(regexp, TRUE, status) == FALSE) {
711 return regexp->fMatcher->group(groupNum, dest, *groupLength, *status);
724 RegularExpression *regexp = (RegularExpression*)regexp2;
725 if (validateRE(regexp, TRUE, status) == FALSE) {
730 if (regexp->fText != NULL) {
735 int32_t startIx = regexp->fMatcher->start(groupNum, *status);
736 int32_t endIx = regexp->fMatcher->end (groupNum, *status);
743 utext_replace(dest, 0, utext_nativeLength(dest), &regexp->fText[startIx], endIx - startIx, status);
746 utext_openUChars(&groupText, &regexp->fText[startIx], endIx - startIx, status);
753 return regexp->fMatcher->group(groupNum, dest, *status);
773 RegularExpression *regexp = (RegularExpression*)regexp2;
774 if (validateRE(regexp, TRUE, status) == FALSE) {
777 int32_t result = regexp->fMatcher->start(groupNum, *status);
797 RegularExpression *regexp = (RegularExpression*)regexp2;
798 if (validateRE(regexp, TRUE, status) == FALSE) {
801 int32_t result = regexp->fMatcher->end(groupNum, *status);
821 RegularExpression *regexp = (RegularExpression*)regexp2;
822 if (validateRE(regexp, TRUE, status) == FALSE) {
825 regexp->fMatcher->reset(index, *status);
847 RegularExpression *regexp = (RegularExpression*)regexp2;
848 if (validateRE(regexp, TRUE, status) == FALSE) {
851 regexp->fMatcher->region(regionStart, regionLimit, *status);
866 RegularExpression *regexp = (RegularExpression*)regexp2;
867 if (validateRE(regexp, TRUE, status) == FALSE) {
870 regexp->fMatcher->region(regionStart, regionLimit, startIndex, *status);
887 RegularExpression *regexp = (RegularExpression*)regexp2;
888 if (validateRE(regexp, TRUE, status) == FALSE) {
891 return regexp->fMatcher->regionStart();
909 RegularExpression *regexp = (RegularExpression*)regexp2;
910 if (validateRE(regexp, TRUE, status) == FALSE) {
913 return regexp->fMatcher->regionEnd();
925 RegularExpression *regexp = (RegularExpression*)regexp2;
926 if (validateRE(regexp, FALSE, status) == FALSE) {
929 return regexp->fMatcher->hasTransparentBounds();
942 RegularExpression *regexp = (RegularExpression*)regexp2;
943 if (validateRE(regexp, FALSE, status) == FALSE) {
946 regexp->fMatcher->useTransparentBounds(b);
958 RegularExpression *regexp = (RegularExpression*)regexp2;
959 if (validateRE(regexp, FALSE, status) == FALSE) {
962 return regexp->fMatcher->hasAnchoringBounds();
975 RegularExpression *regexp = (RegularExpression*)regexp2;
976 if (validateRE(regexp, FALSE, status) == FALSE) {
979 regexp->fMatcher->useAnchoringBounds(b);
991 RegularExpression *regexp = (RegularExpression*)regexp2;
992 if (validateRE(regexp, TRUE, status) == FALSE) {
995 return regexp->fMatcher->hitEnd();
1007 RegularExpression *regexp = (RegularExpression*)regexp2;
1008 if (validateRE(regexp, TRUE, status) == FALSE) {
1011 return regexp->fMatcher->requireEnd();
1024 RegularExpression *regexp = (RegularExpression*)regexp2;
1025 if (validateRE(regexp, FALSE, status)) {
1026 regexp->fMatcher->setTimeLimit(limit, *status);
1041 RegularExpression *regexp = (RegularExpression*)regexp2;
1042 if (validateRE(regexp, FALSE, status)) {
1043 retVal = regexp->fMatcher->getTimeLimit();
1059 RegularExpression *regexp = (RegularExpression*)regexp2;
1060 if (validateRE(regexp, FALSE, status)) {
1061 regexp->fMatcher->setStackLimit(limit, *status);
1076 RegularExpression *regexp = (RegularExpression*)regexp2;
1077 if (validateRE(regexp, FALSE, status)) {
1078 retVal = regexp->fMatcher->getStackLimit();
1094 RegularExpression *regexp = (RegularExpression*)regexp2;
1095 if (validateRE(regexp, FALSE, status)) {
1096 regexp->fMatcher->setMatchCallback(callback, context, *status);
1111 RegularExpression *regexp = (RegularExpression*)regexp2;
1112 if (validateRE(regexp, FALSE, status)) {
1113 regexp->fMatcher->getMatchCallback(*callback, *context, *status);
1128 RegularExpression *regexp = (RegularExpression*)regexp2;
1129 if (validateRE(regexp, FALSE, status)) {
1130 regexp->fMatcher->setFindProgressCallback(callback, context, *status);
1145 RegularExpression *regexp = (RegularExpression*)regexp2;
1146 if (validateRE(regexp, FALSE, status)) {
1147 regexp->fMatcher->getFindProgressCallback(*callback, *context, *status);
1164 RegularExpression *regexp = (RegularExpression*)regexp2;
1165 if (validateRE(regexp, TRUE, status) == FALSE) {
1212 RegularExpression *regexp = (RegularExpression*)regexp2;
1213 if (validateRE(regexp, TRUE, status) == FALSE) {
1221 dest = regexp->fMatcher->replaceAll(replacementText, dest, *status);
1238 RegularExpression *regexp = (RegularExpression*)regexp2;
1239 if (validateRE(regexp, TRUE, status) == FALSE) {
1273 RegularExpression *regexp = (RegularExpression*)regexp2;
1274 if (validateRE(regexp, TRUE, status) == FALSE) {
1282 dest = regexp->fMatcher->replaceFirst(replacementText, dest, *status);
1300 inline static int32_t appendReplacement(RegularExpression *regexp,
1307 inline static int32_t appendTail(RegularExpression *regexp,
1312 inline static int32_t split(RegularExpression *regexp,
1344 int32_t RegexCImpl::appendReplacement(RegularExpression *regexp,
1363 if (validateRE(regexp, TRUE, status) == FALSE) {
1374 RegexMatcher *m = regexp->fMatcher;
1393 if (regexp->fText != NULL) {
1407 appendToBuf(regexp->fText[i], &destIdx, dest, capacity);
1503 destIdx += uregex_group((URegularExpression*)regexp, groupNum,
1565 RegularExpression *regexp = (RegularExpression*)regexp2;
1567 regexp, replacementText, replacementLength,destBuf, destCapacity, status);
1578 RegularExpression *regexp = (RegularExpression*)regexp2;
1579 regexp->fMatcher->appendReplacement(dest, replText, *status);
1588 int32_t RegexCImpl::appendTail(RegularExpression *regexp,
1603 if (validateRE(regexp, TRUE, status) == FALSE) {
1615 RegexMatcher *m = regexp->fMatcher;
1621 if (regexp->fText != NULL) {
1636 if (srcIdx == regexp->fTextLength) {
1639 UChar c = regexp->fText[srcIdx];
1640 if (c == 0 && regexp->fTextLength == -1) {
1641 regexp->fTextLength = srcIdx;
1651 if (regexp->fTextLength > 0) {
1652 destIdx += (regexp->fTextLength - srcIdx);
1718 RegularExpression *regexp = (RegularExpression*)regexp2;
1719 return RegexCImpl::appendTail(regexp, destBuf, destCapacity, status);
1730 RegularExpression *regexp = (RegularExpression*)regexp2;
1731 return regexp->fMatcher->appendTail(dest, *status);
1778 int32_t RegexCImpl::split(RegularExpression *regexp,
1788 regexp->fMatcher->reset();
1789 UText *inputText = regexp->fMatcher->fInputText;
1791 int64_t inputLen = regexp->fMatcher->fInputLength;
1801 int32_t numCaptureGroups = regexp->fMatcher->groupCount();
1826 if (regexp->fMatcher->find()) {
1831 destIdx += 1 + utext_extract(inputText, nextOutputStringStart, regexp->fMatcher->fMatchStart,
1838 nextOutputStringStart = regexp->fMatcher->fMatchEnd;
1853 int32_t t = uregex_group((URegularExpression*)regexp,
1921 RegularExpression *regexp = (RegularExpression*)regexp2;
1922 if (validateRE(regexp, TRUE, status) == FALSE) {
1933 return RegexCImpl::split(regexp, destBuf, destCapacity, requiredCapacity, destFields, destFieldsCapacity, status);
1945 RegularExpression *regexp = (RegularExpression*)regexp2;
1946 return regexp->fMatcher->split(regexp->fMatcher->inputText(), destFields, destFieldsCapacity, *status);