usp10: Improve the stub for ScriptBreak.
This commit is contained in:
parent
092edd81e6
commit
02d30df085
@ -32,6 +32,7 @@
|
|||||||
#include "usp10.h"
|
#include "usp10.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* some documentation here:
|
* some documentation here:
|
||||||
@ -798,13 +799,32 @@ HRESULT WINAPI ScriptXtoCP(int iX,
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* ScriptBreak (USP10.@)
|
* ScriptBreak (USP10.@)
|
||||||
*
|
*
|
||||||
|
* Retrieve line break information.
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* chars [I] Array of characters.
|
||||||
|
* sa [I] String analysis.
|
||||||
|
* la [I] Array of logical attribute structures.
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* Success: S_OK
|
||||||
|
* Failure: S_FALSE
|
||||||
*/
|
*/
|
||||||
HRESULT WINAPI ScriptBreak(const WCHAR *pwcChars, int cChars, const SCRIPT_ANALYSIS *psa,
|
HRESULT WINAPI ScriptBreak(const WCHAR *chars, int count, const SCRIPT_ANALYSIS *sa, SCRIPT_LOGATTR *la)
|
||||||
SCRIPT_LOGATTR *psla)
|
|
||||||
{
|
{
|
||||||
FIXME("(%p,%d,%p,%p): stub\n",
|
unsigned int i;
|
||||||
pwcChars, cChars, psa, psla);
|
|
||||||
|
|
||||||
|
FIXME("(%p, %d, %p, %p) stub\n", chars, count, sa, la);
|
||||||
|
|
||||||
|
if (!la) return S_FALSE;
|
||||||
|
|
||||||
|
for (i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
memset(&la[i], 0, sizeof(SCRIPT_LOGATTR));
|
||||||
|
|
||||||
|
la[i].fWhiteSpace = isspaceW(chars[i]);
|
||||||
|
la[i].fCharStop = 1;
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user