cwchar


1. String Comparison

bool result = wcscmp(str1, str2) == 0;  // Compare two wide character strings

2. String Concatenation

wchar_t wstr[100];
wcscat(wstr, L"Hello");
wcscat(wstr, L" World");  // Concatenate two wide character strings

3. String Copying

wchar_t wstr[100];
wcscpy(wstr, L"Hello World");  // Copy a wide character string

4. String Length

size_t length = wcslen(wstr);  // Get the length of a wide character string

5. Character Conversion (Wide to Multibyte)

char *mbstr = new char[length * 2 + 1];
wcstombs(mbstr, wstr, length);  // Convert a wide character string to a multibyte string

6. Character Conversion (Multibyte to Wide)

wchar_t *wstr = new wchar_t[length + 1];
mbstowcs(wstr, mbstr, length);  // Convert a multibyte string to a wide character string

7. String Search

8. String Substitution

9. String Tokenization

10. String Formatting

11. Character Classification

12. Character Case Conversion

13. String Trim

14. String Split

15. Wide Character to Integer

16. Integer to Wide Character

17. Wide Character to Floating-Point

18. Floating-Point to Wide Character

19. String Length (Without Null-Terminator)

20. String Memory Set

21. String Memory Copy

22. String Memory Move

23. String Memory Compare

24. String Find First Of

25. String Find Last Of

26. String Preamble

27. Wide Character to Wide String

28. Wide String to Wide Character

29. Wide Character to Multibyte

30. Multibyte to Wide Character

31. Wide Character to Narrow

32. Narrow to Wide Character

33. Wide Character Stream I/O

34. Wide Character Stream I/O

35. Wide Character Stream Buffer

36. Wide Character Stream Buffer

37. Wide Character Stream Format Functions

38. Wide Character Stream Format Functions

39. Wide Character Stream I/O (File)

40. Wide Character Stream I/O (File)

41. Wide Character String Operations

42. Wide Character String Operations

43. Wide Character String Operations

44. Wide Character String Operations

45. Wide Character String Operations

46. Wide Character String Operations

47. Wide Character String Operations

48. Wide Character String Operations

49. Wide Character String Operations

50. Wide Character String Operations