NVDA Helper
In-process and lite high-speed utilities for NVDA
textUtils.cpp File Reference
#include <windows.h>
#include <usp10.h>
#include <vector>
#include <common/log.h>

Go to the source code of this file.

Enumerations

enum  UNIT { UNIT_CHARACTER , UNIT_WORD }
 

Functions

vector< SCRIPT_LOGATTR > _getLogAttrArray (const wchar_t *text, int textLength)
 
bool calculateCharacterBoundaries (const wchar_t *text, int textLength, int *offsets, int *offsetsCount)
 
bool _calculateUniscribeOffsets (enum UNIT unit, wchar_t *text, int textLength, int offset, int *startOffset, int *endOffset)
 
bool calculateWordOffsets (wchar_t *text, int textLength, int offset, int *startOffset, int *endOffset)
 
bool calculateCharacterOffsets (wchar_t *text, int textLength, int offset, int *startOffset, int *endOffset)
 

Enumeration Type Documentation

◆ UNIT

enum UNIT
Enumerator
UNIT_CHARACTER 
UNIT_WORD 

Function Documentation

◆ _getLogAttrArray()

vector< SCRIPT_LOGATTR > _getLogAttrArray ( const wchar_t * text,
int textLength )

◆ calculateCharacterBoundaries()

bool calculateCharacterBoundaries ( const wchar_t * text,
int textLength,
int * offsets,
int * offsetsCount )

References _getLogAttrArray().

◆ _calculateUniscribeOffsets()

bool _calculateUniscribeOffsets ( enum UNIT unit,
wchar_t * text,
int textLength,
int offset,
int * startOffset,
int * endOffset )

◆ calculateWordOffsets()

bool calculateWordOffsets ( wchar_t * text,
int textLength,
int offset,
int * startOffset,
int * endOffset )

◆ calculateCharacterOffsets()

bool calculateCharacterOffsets ( wchar_t * text,
int textLength,
int offset,
int * startOffset,
int * endOffset )