Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
f5bdaf59
Commit
f5bdaf59
authored
Apr 07, 2019
by
Eckhart Arnold
Browse files
- repair cython compatibility
parent
29f092d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/stringview.py
View file @
f5bdaf59
...
...
@@ -46,7 +46,7 @@ except ImportError:
__all__
=
(
'StringView'
,
'EMPTY_STRING_VIEW'
,
'cython_optimized'
)
def
first_char
(
text
:
str
,
begin
:
int
,
end
:
int
,
chars
:
str
)
->
int
:
def
first_char
(
text
,
begin
:
int
,
end
:
int
,
chars
)
->
int
:
"""Returns the index of the first non-whitespace character in string
`text` within the bounds [begin, end].
"""
...
...
@@ -55,7 +55,7 @@ def first_char(text: str, begin: int, end: int, chars: str) -> int:
return
begin
def
last_char
(
text
,
begin
:
int
,
end
:
int
,
chars
:
str
)
->
int
:
def
last_char
(
text
,
begin
:
int
,
end
:
int
,
chars
)
->
int
:
"""Returns the index of the first non-whitespace character in string
`text` within the bounds [begin, end].
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment