2007-02-26 18:54:03 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2005-01-27 21:05:44 +00:00
|
|
|
#include "../lstrings.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
2005-01-27 21:05:44 +00:00
|
|
|
using namespace lyx::support;
|
2007-02-26 18:54:03 +00:00
|
|
|
using namespace lyx;
|
2005-01-27 21:05:44 +00:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
void test_lowercase()
|
|
|
|
{
|
2007-02-26 18:54:03 +00:00
|
|
|
cout << to_ascii(docstring(1, lowercase(char_type('A')))) << endl;
|
|
|
|
cout << to_ascii(lowercase(from_ascii("AlLe"))) << endl;
|
2005-01-27 21:05:44 +00:00
|
|
|
cout << lowercase('A') << endl;
|
2007-02-26 18:54:03 +00:00
|
|
|
cout << ascii_lowercase("AlLe") << endl;
|
2005-01-27 21:05:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_uppercase()
|
|
|
|
{
|
2007-02-26 18:54:03 +00:00
|
|
|
cout << to_ascii(docstring(1, uppercase(char_type('a')))) << endl;
|
|
|
|
cout << to_ascii(uppercase(from_ascii("AlLe"))) << endl;
|
2005-01-27 21:05:44 +00:00
|
|
|
cout << uppercase('a') << endl;
|
|
|
|
}
|
|
|
|
|
2005-04-26 11:12:20 +00:00
|
|
|
int main()
|
2005-01-27 21:05:44 +00:00
|
|
|
{
|
|
|
|
test_lowercase();
|
|
|
|
test_uppercase();
|
|
|
|
}
|