Show
Ignore:
Timestamp:
05/29/08 02:57:12 (7 months ago)
Author:
flynd
Message:

Added const to translator functions so we can call it from const context. iconv() doesn't declare it's inbuf parameter as const but it doesn't change the data so it's safe to const_cast it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_translate.h

    r6217 r6226  
    3434  char* nameForIconv(const char* licqName); 
    3535 
    36   char* ToUnicode(char* array, const char* fromEncoding = ""); 
    37   char* FromUnicode(char* array, const char* toEncoding = ""); 
     36  char* ToUnicode(const char* array, const char* fromEncoding = ""); 
     37  char* FromUnicode(const char* array, const char* toEncoding = ""); 
    3838 
    39   char* FromUTF16(char* array, const char* toEncoding, int length = -1); 
    40   char* ToUTF16(char* array, const char* fromEncoding, size_t& outDone); 
     39  char* FromUTF16(const char* array, const char* toEncoding, int length = -1); 
     40  char* ToUTF16(const char* array, const char* fromEncoding, size_t& outDone); 
    4141 
    4242  char* NToRN(const char* array); 
     
    5252  unsigned char clientToServerTab[256]; 
    5353 
    54   char* iconvConvert(char* array, const char* to, const char* from, bool& ok, 
    55       int length = -1, size_t* outDone = NULL); 
     54  char* iconvConvert(const char* array, const char* to, const char* from, 
     55      bool& ok, int length = -1, size_t* outDone = NULL); 
    5656}; 
    5757