Check out example codes for "convert all characters in string to uppercase c++". It will help you in understanding the concepts better.

Code Example 1

transform(str.begin(), str.end(), str.begin(), ::toupper);

Learn ReactJs, React Native from akashmittal.com