Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/iostream.c

    rb6dc097 r44574f2  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Apr 28 13:08:25 2018
    13 // Update Count     : 469
     12// Last Modified On : Thu Jan 25 13:09:28 2018
     13// Update Count     : 467
    1414//
    1515
     
    193193} // ?|?
    194194
    195 // forall( dtype ostype | ostream( ostype ) )
    196 // ostype & ?|?( ostype & os, const char16_t * str ) {
    197 //      if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
    198 //      fmt( os, "%ls", str );
    199 //      return os;
    200 // } // ?|?
    201 
    202 // #if ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 ) // char32_t == wchar_t => ambiguous
    203 // forall( dtype ostype | ostream( ostype ) )
    204 // ostype & ?|?( ostype & os, const char32_t * str ) {
    205 //      if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
    206 //      fmt( os, "%ls", str );
    207 //      return os;
    208 // } // ?|?
    209 // #endif // ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 )
    210 
    211 // forall( dtype ostype | ostream( ostype ) )
    212 // ostype & ?|?( ostype & os, const wchar_t * str ) {
    213 //      if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
    214 //      fmt( os, "%ls", str );
    215 //      return os;
    216 // } // ?|?
     195forall( dtype ostype | ostream( ostype ) )
     196ostype & ?|?( ostype & os, const char16_t * str ) {
     197        if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
     198        fmt( os, "%ls", str );
     199        return os;
     200} // ?|?
     201
     202#if ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 ) // char32_t == wchar_t => ambiguous
     203forall( dtype ostype | ostream( ostype ) )
     204ostype & ?|?( ostype & os, const char32_t * str ) {
     205        if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
     206        fmt( os, "%ls", str );
     207        return os;
     208} // ?|?
     209#endif // ! ( __ARM_ARCH_ISA_ARM == 1 && __ARM_32BIT_STATE == 1 )
     210
     211forall( dtype ostype | ostream( ostype ) )
     212ostype & ?|?( ostype & os, const wchar_t * str ) {
     213        if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
     214        fmt( os, "%ls", str );
     215        return os;
     216} // ?|?
    217217
    218218forall( dtype ostype | ostream( ostype ) )
Note: See TracChangeset for help on using the changeset viewer.