~zorba-coders/zorba/llvm

« back to all changes in this revision

Viewing changes to src/util/icu_streambuf.cpp

  • Committer: William Candillon
  • Date: 2013-01-08 12:14:38 UTC
  • mfrom: (11157.1.7 zorba)
  • Revision ID: william.candillon@28msec.com-20130108121438-1n9zklr39fvl5yrn
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
}
59
59
 
60
60
icu_streambuf::icu_streambuf( char const *charset, streambuf *orig ) :
61
 
  proxy_streambuf( orig ),
 
61
  internal::proxy_streambuf( orig ),
62
62
  no_conv_( !is_necessary( charset ) ),
63
63
  external_conv_( no_conv_ ? nullptr : create_conv( charset ) ),
64
64
  utf8_conv_( no_conv_ ? nullptr : create_conv( "UTF-8" ) )
151
151
}
152
152
 
153
153
icu_streambuf::int_type icu_streambuf::overflow( int_type c ) {
154
 
#if ZORBA_DEBUG_ICU_STREAMBUF
 
154
#ifdef ZORBA_DEBUG_ICU_STREAMBUF
155
155
  printf( "overflow()\n" );
156
156
#endif
157
157
  if ( no_conv_ )
233
233
#endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */
234
234
 
235
235
icu_streambuf::int_type icu_streambuf::underflow() {
236
 
#if ZORBA_DEBUG_ICU_STREAMBUF
 
236
#ifdef ZORBA_DEBUG_ICU_STREAMBUF
237
237
  printf( "underflow()\n" );
238
238
#endif
239
239
  if ( no_conv_ )
263
263
}
264
264
 
265
265
streamsize icu_streambuf::xsgetn( char_type *to, streamsize size ) {
266
 
#if ZORBA_DEBUG_ICU_STREAMBUF
 
266
#ifdef ZORBA_DEBUG_ICU_STREAMBUF
267
267
  printf( "xsgetn()\n" );
268
268
#endif
269
269
  if ( no_conv_ )
301
301
}
302
302
 
303
303
streamsize icu_streambuf::xsputn( char_type const *from, streamsize size ) {
304
 
#if ZORBA_DEBUG_ICU_STREAMBUF
 
304
#ifdef ZORBA_DEBUG_ICU_STREAMBUF
305
305
  printf( "xsputn()\n" );
306
306
#endif
307
307
  if ( no_conv_ )