UTF8 - Simple Library for Internationalization
Loading...
Searching...
No Matches
casecvt.cpp File Reference

Implementation case folding functions. More...

#include <utf8/utf8.h>
#include <algorithm>
#include <assert.h>
#include <ctype.h>
#include "uppertab.h"
#include "lowertab.h"

Functions

bool utf8::islower (char32_t r)
 
bool utf8::islower (const char *p)
 
std::string utf8::tolower (const std::string &str)
 Convert UTF-8 string to lower case.
 
void utf8::make_lower (std::string &str)
 In place version converts a UTF-8 encoded string to lowercase.
 
bool utf8::isupper (char32_t r)
 
bool utf8::isupper (const char *p)
 
std::string utf8::toupper (const std::string &str)
 Convert a UTF-8 string to upper case.
 
void utf8::make_upper (std::string &str)
 In place version converts a UTF-8 encoded string to lowercase.
 
int utf8::icompare (const std::string &s1, const std::string &s2)
 Compare two strings in a case-insensitive way.
 

Detailed Description

Implementation case folding functions.