Closed dennwc closed 5 years ago
Support conversions from byte offset to Unicode/UTF-16 byte line-column pairs. Also, refactor the code for consistency and add more test cases.
This allows using positional info generated by Babelfish to calculate Unicode positions used in code editors.
Required by https://github.com/bblfsh/libuast/issues/102.
This change is
Support conversions from byte offset to Unicode/UTF-16 byte line-column pairs. Also, refactor the code for consistency and add more test cases.
This allows using positional info generated by Babelfish to calculate Unicode positions used in code editors.
Required by https://github.com/bblfsh/libuast/issues/102.
This change is