if (in_brackets > 0) if (lookBehind(sb) == '[' && isLetter(lookAhead(pattern, i))) in_char_class = true; sb.append(':'); if (lookAhead(pattern, i) == ']') sb.append('\\').append(c); else char lookAhead = lookAhead(pattern, i); if (lookAhead == ']' || lookAhead == '[') ignoreLastBracket = true; } else { char lookAhead = lookAhead(pattern, i); if (lookAhead != '\\' && lookAhead != '[' && lookAhead != '?' && lookAhead != '*'
if (in_brackets > 0) if (lookBehind(sb) == '[' && isLetter(lookAhead(pattern, i))) in_char_class = true; sb.append(':'); if (lookAhead(pattern, i) == ']') sb.append('\\').append(c); else char lookAhead = lookAhead(pattern, i); if (lookAhead == ']' || lookAhead == '[') ignoreLastBracket = true; } else { char lookAhead = lookAhead(pattern, i); if (lookAhead != '\\' && lookAhead != '[' && lookAhead != '?' && lookAhead != '*'
if (in_brackets > 0) if (lookBehind(sb) == '[' && isLetter(lookAhead(pattern, i))) in_char_class = true; sb.append(':'); if (lookAhead(pattern, i) == ']') sb.append('\\').append(c); else char lookAhead = lookAhead(pattern, i); if (lookAhead == ']' || lookAhead == '[') ignoreLastBracket = true; } else { char lookAhead = lookAhead(pattern, i); if (lookAhead != '\\' && lookAhead != '[' && lookAhead != '?' && lookAhead != '*'
if (in_brackets > 0) if (lookBehind(sb) == '[' && isLetter(lookAhead(pattern, i))) in_char_class = true; sb.append(':'); if (lookAhead(pattern, i) == ']') sb.append('\\').append(c); else char lookAhead = lookAhead(pattern, i); if (lookAhead == ']' || lookAhead == '[') ignoreLastBracket = true; } else { char lookAhead = lookAhead(pattern, i); if (lookAhead != '\\' && lookAhead != '[' && lookAhead != '?' && lookAhead != '*'