Add test document to repo for now

This commit is contained in:
Veronica Berglyd Olsen
2025-07-06 17:09:21 +02:00
parent 58eda950f8
commit d8d60faa6b
3 changed files with 35 additions and 8 deletions
+1 -1
View File
@@ -498,7 +498,7 @@ def utf16CharMap(text: str) -> list[int]:
"""Compute mapping from Python string index to QString index.
Python strings are always one character per position in either
ASCII, UCS-2 or UCS-4. QStrings are in UTF-16, so wide characters
use 2 indices, and thus creates an offset.
use 2 indices, and thus create an offset.
"""
utf16Map = list(range(0, len(text) + 1))
offset = 0