Transcoder_Test.cpp File Reference

#include "ACEXML/common/Transcode.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_main.h"

Include dependency graph for Transcoder_Test.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void dump_utf16 (const ACEXML_UTF16 *data, size_t len)


Function Documentation

void dump_utf16 const ACEXML_UTF16 data,
size_t  len
 

Definition at line 8 of file Transcoder_Test.cpp.

References ACE_DEBUG, ACEXML_UTF16, and LM_DEBUG.

00010 {
00011   size_t ptr = 0;
00012 
00013   while (1)
00014     {
00015       ACE_DEBUG ((LM_DEBUG, "%04x", data[ptr]));
00016 
00017       if (++ptr >= len)
00018         break;
00019 
00020       if (ptr % 4 == 0)
00021         ACE_DEBUG ((LM_DEBUG, "\n"));
00022       else
00023         ACE_DEBUG ((LM_DEBUG, "  "));
00024     }
00025   ACE_DEBUG ((LM_DEBUG, "\n"));
00026   return;
00027 }


Generated on Thu Nov 9 11:47:24 2006 for ACEXML by doxygen 1.3.6