~ubuntu-branches/ubuntu/quantal/icu/quantal

« back to all changes in this revision

Viewing changes to source/test/intltest/cputilst.cpp

  • Committer: Package Import Robot
  • Author(s): Yves Arrouye
  • Date: 2002-03-03 15:31:13 UTC
  • Revision ID: package-import@ubuntu.com-20020303153113-3ssceqlq45xbmbnc
Tags: upstream-2.0-2.1pre20020303
ImportĀ upstreamĀ versionĀ 2.0-2.1pre20020303

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
16
void  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
 
 
31
void  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