bblfsh / sdk

Babelfish driver SDK
GNU General Public License v3.0
23 stars 27 forks source link

Support conversion to Unicode line-column positions #405

Closed dennwc closed 5 years ago

dennwc commented 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 Reviewable