• Preparing search index...
  • The search index is not available
regexp-ast-analysis - v0.7.1
  • regexp-ast-analysis
  • FirstLookChars
  • toConsumed

Function toConsumed

  • toConsumed(look): FirstConsumedChar
  • Converts the given FirstLookChar to a FirstConsumedChar.

    This is semantically equivalent to (?=b|$) -> []|(?=b|$).

    Note: This operation will typically return a FirstPartiallyConsumedChar. It will only return a FirstFullyConsumedChar if the given char is empty and edge: false. This is because (?=[]) -> []|(?=[]) == [].

    Parameters

    • look: FirstLookChar

    Returns FirstConsumedChar

Settings

Member Visibility

Theme

regexp-ast-analysis - v0.7.1
  • Chars
  • FirstConsumedChars
  • FirstLookChars
    • all
    • edge
    • toConsumed
  • Cache
  • CanReorderOptions
  • ConsumedChars
  • FirstFullyConsumedChar
  • FirstLookChar
  • FirstPartiallyConsumedChar
  • FollowOperations
  • GetLongestPrefixOptions
  • LengthRange
  • ReadonlyFlags
  • WithContributors
  • Ancestor
  • CharacterElement
  • ClosestAncestor
  • ContainsCapturingGroup
  • Descendant
  • FirstConsumedChar
  • FollowEndReason
  • MatchingDirection
  • OptionalMatchingDirection
  • ToCharSetElement
  • ToUnicodeSetElement
  • canReorder
  • canReorderDirectional
  • containsCapturingGroup
  • createCache
  • followPaths
  • getCapturingGroupNumber
  • getClosestAncestor
  • getConsumedChars
  • getEffectiveMaximumRepetition
  • getFirstCharAfter
  • getFirstCharAfterWithContributors
  • getFirstConsumedChar
  • getFirstConsumedCharAfter
  • getFirstConsumedCharAfterWithContributors
  • getLengthRange
  • getLongestPrefix
  • getMatchingDirection
  • getMatchingDirectionFromAssertionKind
  • getPattern
  • hasSomeAncestor
  • hasSomeDescendant
  • hasStrings
  • invertMatchingDirection
  • isEmpty
  • isEmptyBackreference
  • isLengthRangeMinZero
  • isPotentiallyEmpty
  • isPotentiallyZeroLength
  • isStrictBackreference
  • isZeroLength
  • matchesAllCharacters
  • matchesNoCharacters
  • structurallyEqual
  • toCache
  • toCharSet
  • toUnicodeSet