ScriptString_pLogAttr (Windows Embedded CE 6.0)
1/6/2010
This function returns a pointer to a logical attributes buffer for an analyzed string.
Syntax
const SCRIPT_LOGATTR* WINAPI ScriptString_pLogAttr(
SCRIPT_STRING_ANALYSIS ssa
);
Parameters
- ssa
[in] A SCRIPT_STRING_ANALYSIS structure for the string.
Return Value
If the function is successful, it returns a pointer to the logical attributes buffer.
If the function fails, it returns NULL.
Remarks
The buffer pointer is valid only until the associated ssa is passed to ScriptStringFree.
The logical attribute buffer contains *ScriptString_pcOutChars (ssa) entries.
When scanning the SCRIPT_LOGATTR array for a wordbreak point you should look backwards for fWordStop and fWhiteSpace. This is because ScriptStringAnalyse simply calls ScriptBreak on each run, and ScriptBreak never sets fWordBreak on the first character of a run because it does not know whether the previous run ended in whitespace.
Requirements
Header | usp10.h |
Library | Uspce.lib |
Windows Embedded CE | Windows CE 5.0 and later |
See Also
Reference
ScriptBreak
ScriptStringAnalyse
ScriptStringFree
SCRIPT_STRING_ANALYSIS