Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
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:
...
@@ -46,7 +46,7 @@ except ImportError:
__all__
=
(
'StringView'
,
'EMPTY_STRING_VIEW'
,
'cython_optimized'
)
__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
"""Returns the index of the first non-whitespace character in string
`text` within the bounds [begin, end].
`text` within the bounds [begin, end].
"""
"""
...
@@ -55,7 +55,7 @@ def first_char(text: str, begin: int, end: int, chars: str) -> int:
...
@@ -55,7 +55,7 @@ def first_char(text: str, begin: int, end: int, chars: str) -> int:
return
begin
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
"""Returns the index of the first non-whitespace character in string
`text` within the bounds [begin, end].
`text` within the bounds [begin, end].
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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