@ntix/parsing
Preparing search index...
StringParser
Class StringParser
Fluent builder for parsing strings
Implements
IString
.
Parser
Index
Constructors
constructor
Properties
parse
Accessors
not
Methods
any
Of
ends
With
equals
includes
matches
max
Length
min
Length
starts
With
Constructors
constructor
new
StringParser
(
parent
:
IParser
<
unknown
>
,
parseCurrent
:
ICurrentParser
<
string
>
,
negate
?:
boolean
,
)
:
StringParser
Parameters
parent
:
IParser
<
unknown
>
parseCurrent
:
ICurrentParser
<
string
>
negate
:
boolean
= false
Returns
StringParser
Properties
Readonly
parse
parse
:
IParse
<
string
>
= ...
Accessors
not
get
not
()
:
StringParser
Returns
StringParser
Methods
Readonly
any
Of
anyOf
(
values
:
string
[]
,
ignoreCase
?:
boolean
)
:
StringParser
Parameters
values
:
string
[]
ignoreCase
:
boolean
= false
Returns
StringParser
Readonly
ends
With
endsWith
(
value
:
string
,
ignoreCase
?:
boolean
)
:
StringParser
Parameters
value
:
string
ignoreCase
:
boolean
= false
Returns
StringParser
Readonly
equals
equals
(
value
:
string
,
ignoreCase
?:
boolean
)
:
StringParser
Parameters
value
:
string
ignoreCase
:
boolean
= false
Returns
StringParser
Readonly
includes
includes
(
value
:
string
,
ignoreCase
?:
boolean
)
:
StringParser
Parameters
value
:
string
ignoreCase
:
boolean
= false
Returns
StringParser
Readonly
matches
matches
(
value
:
string
|
RegExp
,
name
?:
string
)
:
StringParser
Parameters
value
:
string
|
RegExp
name
:
string
= null
Returns
StringParser
Readonly
max
Length
maxLength
(
value
:
number
,
exclusive
?:
boolean
)
:
StringParser
Parameters
value
:
number
exclusive
:
boolean
= false
Returns
StringParser
Readonly
min
Length
minLength
(
value
:
number
,
exclusive
?:
boolean
)
:
StringParser
Parameters
value
:
number
exclusive
:
boolean
= false
Returns
StringParser
Readonly
starts
With
startsWith
(
value
:
string
,
ignoreCase
?:
boolean
)
:
StringParser
Parameters
value
:
string
ignoreCase
:
boolean
= false
Returns
StringParser
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
parse
Accessors
not
Methods
any
Of
ends
With
equals
includes
matches
max
Length
min
Length
starts
With
@ntix/parsing
Loading...
Fluent builder for parsing strings