mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-17 08:32:48 +00:00
15b104953a
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19422 a592a061-630c-0410-9148-cb99ea01b6c8
37 lines
692 B
C++
37 lines
692 B
C++
#include <config.h>
|
|
|
|
#include "../lstrings.h"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
using namespace lyx::support;
|
|
using namespace lyx;
|
|
|
|
using namespace std;
|
|
|
|
namespace lyx {
|
|
docstring const _(string const & s) { return from_ascii(s); }
|
|
}
|
|
|
|
void test_lowercase()
|
|
{
|
|
cout << to_ascii(docstring(1, lowercase(char_type('A')))) << endl;
|
|
cout << to_ascii(lowercase(from_ascii("AlLe"))) << endl;
|
|
cout << lowercase('A') << endl;
|
|
cout << ascii_lowercase("AlLe") << endl;
|
|
}
|
|
|
|
void test_uppercase()
|
|
{
|
|
cout << to_ascii(docstring(1, uppercase(char_type('a')))) << endl;
|
|
cout << to_ascii(uppercase(from_ascii("AlLe"))) << endl;
|
|
cout << uppercase('a') << endl;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
test_lowercase();
|
|
test_uppercase();
|
|
}
|