Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <cstdlib>
- //ZubkoVladimir2001
- //ЗубкоВладимир2001
- //Зубко2001Vladimir
- //windows-1251
- // 5A 75 62 6B 6F 56 6C 61 64 69 6D 69 72 32 30 30 31
- // c7 f3 e1 ea ee c2 eb e0 e4 e8 ec e8 f0 32 30 30 31
- // c7 f3 e1 ea ee 32 30 30 31 56 6c 61 64 69 6d 69 72
- //UTF-8
- // 005a 0075 0062 006B 006F 0056 006C 0061 0064 0061 006D 0069 FF52 FF12 0030 0030 0031
- // 0417 0043 0431 049D 043E 0412 043B 0439 0434 0438 043C 0438 0440 FF12 0030 0030 0031
- // 0417 0043 0431 049D 043E FF12 0030 0030 0031 0056 006C 0061 0064 0061 006D 0069 FF52
- //UTF-16
- // \u005A \u0075 \u0062 \u006B \u006F \u0056 \u006C \u0061 \u0064 \u0069 \u006D \u0069 \u0072 \u0032 \u0030 \u0030 \u0031
- // \u0417 \u0443 \u0431 \u043A \u043E \u0412 \u043B \u0430 \u0434 \u0438 \u043C \u0438 \u0440 \u0032 \u0030 \u0030 \u0031
- // \u0417 \u0443 \u0431 \u043A \u043E \u0032 \u0030 \u0030 \u0031 \u0056 \u006C \u0061 \u0064 \u0069 \u006D \u0069 \u0072
- char lf[] = "ZubkoVladimir2001";
- char rf[] = "ЗубкоВладимир2001";
- char lr[] = "Зубко2001Vladimir";
- wchar_t Llp[] = L"ZubkoVladimir2001";
- wchar_t Lrp[] = L"ЗубкоВладимир2001";
- wchar_t Llr[] = L"Зубко2001Vladimir";
- char* UpperW1251(char* destination, char* source) {
- int count = 0;
- for (int i = 0; source[i] != '\0'; i++) {
- if (source[i] >= 'a' && source[i] <= 'z')
- destination[i] = source[i] - 32;
- else if (source[i] >= 'а' && source[i] <= 'я')
- destination[i] = source[i] - 32;
- else
- destination[i] = source[i];
- count++;
- }
- destination[count] = '\0';
- return destination;
- }
- int main()
- {
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement