Home | History | Annotate | Download | only in genrb

Lines Matching refs:status

49            UnicodeString replaceText, UErrorCode *status){
51 if(status == NULL || U_FAILURE(*status)){
57 RegexMatcher myMatcher(patString, src, options, *status);
58 if(U_FAILURE(*status)){
64 dest = myMatcher.replaceAll(replaceText,*status);
67 return dest.extract(source, srcLen, *status);
71 trim(UChar *src, int32_t srcLen, UErrorCode *status){
72 srcLen = removeText(src, srcLen, UnicodeString("^[ \\r\\n]+ "), 0, UnicodeString(), status); // remove leading new lines
73 srcLen = removeText(src, srcLen, UnicodeString("^\\s+"), 0, UnicodeString(), status); // remove leading spaces
74 srcLen = removeText(src, srcLen, UnicodeString("\\s+$"), 0, UnicodeString(), status); // remvoe trailing spcaes
79 removeCmtText(UChar* source, int32_t srcLen, UErrorCode* status){
80 srcLen = trim(source, srcLen, status);
82 srcLen = removeText(source, srcLen, patString, UREGEX_MULTILINE, UnicodeString(), status);
83 return removeText(source, srcLen, UnicodeString("[ \\r\\n]+"), 0, UnicodeString(" "), status);// remove new lines;
90 UErrorCode* status){
92 if(status == NULL || U_FAILURE(*status)){
97 RegexPattern *pattern = RegexPattern::compile(UnicodeString("@"), 0, *status);
100 if (U_FAILURE(*status)) {
103 pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status);
105 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status);
106 if (U_FAILURE(*status)) {
111 if(matcher.lookingAt(*status)){
112 UnicodeString out = matcher.group(1, *status);
114 return out.extract(*dest, destCapacity,*status);
126 UErrorCode* status){
127 if(status == NULL || U_FAILURE(*status)){
132 RegexPattern *pattern = RegexPattern::compile(UnicodeString("@"), UREGEX_MULTILINE, *status);
135 if (U_FAILURE(*status)) {
138 pattern->split(src, stringArray,MAX_SPLIT_STRINGS , *status);
141 int32_t destLen = stringArray[0].extract(*dest, destCapacity, *status);
142 return trim(*dest, destLen, status);
149 UParseCommentsOption option, UErrorCode *status){
151 if(status == NULL || U_FAILURE(*status)){
156 RegexPattern *pattern = RegexPattern::compile(UnicodeString("@"), UREGEX_MULTILINE, *status);
160 if (U_FAILURE(*status)) {
163 int32_t retLen = pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status);
166 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status);
167 if (U_FAILURE(*status)) {
173 if(matcher.lookingAt(*status)){
189 UErrorCode* status){
191 if(status == NULL || U_FAILURE(*status)){
196 RegexPattern *pattern = RegexPattern::compile(UnicodeString("@"), UREGEX_MULTILINE, *status);
200 if (U_FAILURE(*status)) {
203 int32_t retLen = pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status);
206 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status);
207 if (U_FAILURE(*status)) {
213 if(matcher.lookingAt(*status)){
215 UnicodeString out = matcher.group(1, *status);
216 return out.extract(*dest, destCapacity,*status);
229 UErrorCode* status){
232 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status);
233 return trim(*dest, destLen, status);
239 UErrorCode* status){
242 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status);
243 return trim(*dest, destLen, status);