xo-tokenizer: feat: + basic arithmetic operators
This commit is contained in:
parent
3746f32529
commit
fa335ee523
4 changed files with 23 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ namespace xo {
|
|||
|
||||
/** @brief create span representing prefix up to (but not including) @p *p
|
||||
**/
|
||||
span prefix(CharT * p) const {
|
||||
span prefix_upto(CharT * p) const {
|
||||
if (p <= hi_)
|
||||
return span(lo_, p);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue