- Notifications
You must be signed in to change notification settings - Fork173
-
Hello, |
BetaWas this translation helpful?Give feedback.
All reactions
Answered by magiblotFeb 5, 2024
You may use thelineStart
,lineEnd
andcharPos
methods. For example:
uint currentLineLengthInBytes = lineEnd(curPtr) - lineStart(curPtr);uint currentLineWidth = charPos(lineStart(curPtr), lineEnd(curPtr));uint lengthInBytesFromCurrentPositionUntilEol = lineEnd(curPtr) - curPtr;uint widthFromCurrentPositionUntilEol = charPos(curPtr, lineEnd(curPtr));
Replies: 1 comment
-
You may use the uint currentLineLengthInBytes = lineEnd(curPtr) - lineStart(curPtr);uint currentLineWidth = charPos(lineStart(curPtr), lineEnd(curPtr));uint lengthInBytesFromCurrentPositionUntilEol = lineEnd(curPtr) - curPtr;uint widthFromCurrentPositionUntilEol = charPos(curPtr, lineEnd(curPtr)); |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
0 replies
Answer selected bypaule32
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment