]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/test/intltest/cputilst.cpp
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / test / intltest / cputilst.cpp
... / ...
CommitLineData
1/********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 2001, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6#include "unicode/utypes.h"
7#include "cputilst.h"
8#include <stdio.h>
9#include <stdlib.h>
10#include <string.h>
11
12
13/*Debugging functions, DO NOT USE*/
14;
15
16void printUChar(const UChar *uniString)
17{
18 uint32_t i=0;
19
20 putchar('{');
21 while (uniString[i])
22 {
23 printf( "0x%.4X\t", (UChar)uniString[i++]);
24 if (!(i%8)) putchar('\n');
25 }
26 putchar('}');
27 printf("(%d)", i);
28
29}
30
31void printChar(const char *charString)
32{
33 uint32_t i=0;
34
35 putchar('{');
36 while (charString[i])
37
38 {
39 printf( "0x%.2X\t", (unsigned char)charString[i++]);
40 if (!(i%8)) putchar('\n');
41 }
42 putchar('}');
43 printf("(%d)", i);
44
45}
46
47
48