// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
* %W% %E%
*
* (C) Copyright IBM Corp. 2001-2016 - All Rights Reserved
*
*/
#include "unicode/utypes.h"
#include "unicode/uscript.h"
#include "cmemory.h"
#include "scrptrun.h"
#include <stdio.h>
char16_t testChars[] = {
0 x0020,
0 x0946,
0 x0939,
0 x093F,
0 x0928,
0 x094D,
0 x0926,
0 x0940,
0 x0020,
0 x0627,
0 x0644,
0 x0639,
0 x0631,
0 x0628,
0 x064A,
0 x0629,
0 x0020,
0 x0420,
0 x0443,
0 x0441,
0 x0441,
0 x043A,
0 x0438,
0 x0439,
0 x0020,
'E' ,
'n' ,
'g' ,
'l' ,
'i' ,
's' ,
'h' ,
0 x0020,
0 x6F22,
0 x5B75,
0 x3068,
0 x3072,
0 x3089,
0 x304C,
0 x306A,
0 x3068,
0 x30AB,
0 x30BF,
0 x30AB,
0 x30CA,
0 xD801,
0 xDC00,
0 xD801,
0 xDC01,
0 xD801,
0 xDC02,
0 xD801,
0 xDC03
};
int32_t testLength = UPRV_LENGTHOF(testChars);
int main()
{
icu::ScriptRun scriptRun(testChars,
0 , testLength);
while (scriptRun.next()) {
int32_t start = scriptRun.getScriptStart();
int32_t end = scriptRun.getScriptEnd();
UScriptCode code = scriptRun.getScriptCode();
printf(
"Script '%s' from %d to %d.\n" , uscript_getName(code), start, end);
}
return 0 ;
}
Messung V0.5 in Prozent C=94 H=89 G=91
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-06-05)
¤
*© Formatika GbR, Deutschland