diff options
author | Michal Čihař <michal@cihar.com> | 2017-10-16 12:03:08 +0200 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-10-16 12:03:08 +0200 |
commit | c0d374afeacce36b582eedbcecd2a6952dca4aa5 (patch) | |
tree | c34a317510cf958674d25031f3e813172d5b5667 | |
parent | 8ab57e737d634210c0f4dd742880c690bcdde0d0 (diff) | |
download | sql-parser-c0d374afeacce36b582eedbcecd2a6952dca4aa5.zip sql-parser-c0d374afeacce36b582eedbcecd2a6952dca4aa5.tar.gz sql-parser-c0d374afeacce36b582eedbcecd2a6952dca4aa5.tar.bz2 |
Document that position is counted in chars not bytes
Issue #177
Signed-off-by: Michal Čihař <michal@cihar.com>
-rw-r--r-- | src/Token.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Token.php b/src/Token.php index c3bdc19..4d028bf 100644 --- a/src/Token.php +++ b/src/Token.php @@ -207,6 +207,9 @@ class Token /** * The position in the initial string where this token started. * + * The position is counted in chars, not bytes, so you should + * use mb_* functions to properly handle utf-8 multibyte chars. + * * @var int */ public $position; |