Stay organized with collections
Save and categorize content based on your preferences.
UTransPosition
Position structure for utrans_transIncremental() incremental transliteration.
Summary
This structure defines two substrings of the text being transliterated. The first region, [contextStart, contextLimit), defines what characters the transliterator will read as context. The second region, [start, limit), defines what characters will actually be transliterated. The second region should be a subset of the first.
After a transliteration operation, some of the indices in this structure will be modified. See the field descriptions for details.
contextStart <= start <= limit <= contextLimit
Note: All index values in this structure must be at code point boundaries. That is, none of them may occur between two code units of a surrogate pair. If any index does split a surrogate pair, results are unspecified.
Public attributes
|
contextLimit
|
int32_t
Ending index, exclusive, of the context to be considered for a transliteration operation.
|
contextStart
|
int32_t
Beginning index, inclusive, of the context to be considered for a transliteration operation.
|
limit
|
int32_t
Ending index, exclusive, of the text to be transliterated.
|
start
|
int32_t
Beginning index, inclusive, of the text to be transliterated.
|
Public attributes
contextLimit
Declared in unicode/utrans.h
int32_t UTransPosition::contextLimit
Ending index, exclusive, of the context to be considered for a transliteration operation.
The transliterator will ignore anything at or after this index. INPUT/OUTPUT parameter: This parameter is updated to reflect changes in the length of the text, but points to the same logical position in the text.
contextStart
Declared in unicode/utrans.h
int32_t UTransPosition::contextStart
Beginning index, inclusive, of the context to be considered for a transliteration operation.
The transliterator will ignore anything before this index. INPUT/OUTPUT parameter: This parameter is updated by a transliteration operation to reflect the maximum amount of antecontext needed by a transliterator.
limit
Declared in unicode/utrans.h
int32_t UTransPosition::limit
Ending index, exclusive, of the text to be transliterated.
INPUT/OUTPUT parameter: This parameter is updated to reflect changes in the length of the text, but points to the same logical position in the text.
start
Declared in unicode/utrans.h
int32_t UTransPosition::start
Beginning index, inclusive, of the text to be transliterated.
INPUT/OUTPUT parameter: This parameter is advanced past characters that have already been transliterated by a transliteration operation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[],null,["# UTransPosition Struct Reference\n\nUTransPosition\n==============\n\nPosition structure for [utrans_transIncremental()](/ndk/reference/group/icu4c#group__icu4c_1ga67160f7c04dc1af49d1f1aad2bcb0d49) incremental transliteration.\n\nSummary\n-------\n\nThis structure defines two substrings of the text being transliterated. The first region, \\[contextStart, contextLimit), defines what characters the transliterator will read as context. The second region, \\[start, limit), defines what characters will actually be transliterated. The second region should be a subset of the first.\n\nAfter a transliteration operation, some of the indices in this structure will be modified. See the field descriptions for details.\n\ncontextStart \\\u003c= start \\\u003c= limit \\\u003c= contextLimit\n\nNote: All index values in this structure must be at code point boundaries. That is, none of them may occur between two code units of a surrogate pair. If any index does split a surrogate pair, results are unspecified.\n\n\u003cbr /\u003e\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| [contextLimit](#struct_u_trans_position_1a78d09b71320d0b9a1e7720bda8420372) | `int32_t` Ending index, exclusive, of the context to be considered for a transliteration operation. |\n| [contextStart](#struct_u_trans_position_1ac0b101b915a80d9cad00974c66e28c40) | `int32_t` Beginning index, inclusive, of the context to be considered for a transliteration operation. |\n| [limit](#struct_u_trans_position_1ace64783d9d1016f2960cda02b30dbd03) | `int32_t` Ending index, exclusive, of the text to be transliterated. |\n| [start](#struct_u_trans_position_1a26113cfb9aa6fd5457e6e9e095f0fc32) | `int32_t` Beginning index, inclusive, of the text to be transliterated. |\n\nPublic attributes\n-----------------\n\n### contextLimit\n\nDeclared in `unicode/utrans.h` \n\n```scdoc\nint32_t UTransPosition::contextLimit\n``` \nEnding index, exclusive, of the context to be considered for a transliteration operation.\n\nThe transliterator will ignore anything at or after this index. INPUT/OUTPUT parameter: This parameter is updated to reflect changes in the length of the text, but points to the same logical position in the text. \n\n### contextStart\n\nDeclared in `unicode/utrans.h` \n\n```scdoc\nint32_t UTransPosition::contextStart\n``` \nBeginning index, inclusive, of the context to be considered for a transliteration operation.\n\nThe transliterator will ignore anything before this index. INPUT/OUTPUT parameter: This parameter is updated by a transliteration operation to reflect the maximum amount of antecontext needed by a transliterator. \n\n### limit\n\nDeclared in `unicode/utrans.h` \n\n```scdoc\nint32_t UTransPosition::limit\n``` \nEnding index, exclusive, of the text to be transliterated.\n\nINPUT/OUTPUT parameter: This parameter is updated to reflect changes in the length of the text, but points to the same logical position in the text. \n\n### start\n\nDeclared in `unicode/utrans.h` \n\n```scdoc\nint32_t UTransPosition::start\n``` \nBeginning index, inclusive, of the text to be transliterated.\n\nINPUT/OUTPUT parameter: This parameter is advanced past characters that have already been transliterated by a transliteration operation."]]