framework/c/inc/le_utf8.h
Go to the documentation of this file.
00001 
00118 //--------------------------------------------------------------------------------------------------
00127 #ifndef LEGATO_UTF8_INCLUDE_GUARD
00128 #define LEGATO_UTF8_INCLUDE_GUARD
00129 
00130 
00131 //--------------------------------------------------------------------------------------------------
00142 //--------------------------------------------------------------------------------------------------
00143 ssize_t le_utf8_NumChars
00144 (
00145     const char* string      
00146 );
00147 
00148 
00149 //--------------------------------------------------------------------------------------------------
00156 //--------------------------------------------------------------------------------------------------
00157 size_t le_utf8_NumBytes
00158 (
00159     const char* string      
00160 );
00161 
00162 
00163 //--------------------------------------------------------------------------------------------------
00188 //--------------------------------------------------------------------------------------------------
00189 le_result_t le_utf8_Copy
00190 (
00191     char* destStr,          
00192     const char* srcStr,     
00193     const size_t destSize,  
00194     size_t* numBytesPtr     
00195 
00196 
00197 );
00198 
00199 
00200 //--------------------------------------------------------------------------------------------------
00223 //--------------------------------------------------------------------------------------------------
00224 le_result_t le_utf8_Append
00225 (
00226     char* destStr,          
00227     const char* srcStr,     
00228     const size_t destSize,  
00229     size_t* destStrLenPtr   
00230 
00231 
00232 );
00233 
00234 
00235 //--------------------------------------------------------------------------------------------------
00251 //--------------------------------------------------------------------------------------------------
00252 le_result_t le_utf8_CopyUpToSubStr
00253 (
00254     char* destStr,          
00255     const char* srcStr,     
00256     const char* subStr,     
00257     const size_t destSize,  
00258     size_t* numBytesPtr     
00259 
00260 
00261 );
00262 
00263 
00264 //--------------------------------------------------------------------------------------------------
00272 //--------------------------------------------------------------------------------------------------
00273 bool le_utf8_IsFormatCorrect
00274 (
00275     const char* string      
00276 );
00277 
00278 
00279 #endif  // LEGATO_UTF8_INCLUDE_GUARD
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines