Tag: uppercase
Convert a String to Uppercase or LowerCase in C++
In this article, we will discuss different ways to convert a string to upper case or lower case in C++. Table Of Contents Using STL using Boost String Algorithm Library Convert a String to Upper Case using STL C++ provides a function ::toupper() that converts a character to upper case character i.e. Advertisements int toupper ( …
Python: Count uppercase characters in a string
This article will discuss different ways to count the number of uppercase characters in a string. Table of Contents Advertisements Count uppercase characters in a python string using for-loop Count uppercase characters in a python string using sum() function Count uppercase characters in a python string using regex Count uppercase characters in a python string …
Javascript: How to make first letter of a string uppercase
Strings are JavaScript’s data type used to represent the textual data and are most commonly used. Many people encounter a general requirement to Capitalize the first letter of a String. This article will discuss different ways to make the first letter uppercase using examples. Javascript’s toUpperCase() will return the calling string converted to uppercase. If …
Javascript: How to make first letter of a string uppercaseRead More
JavaScript: Check if String Starts with UpperCase
A general requirement many people encounter while working with javascript strings is to check if the first letter of the string is capitalized. This article demonstrates easy ways to check if the string starts with uppercase using different methods and illustration examples. Table of Contents: Check if String Starts with UpperCase using toUpperCase() Check if …
Check if First Letter of String is Uppercase in Python
This article will discuss how to check if a string starts with a capital letter in Python. Table of Contents Check if First Letter of String is Uppercase using isupper() Check if the First Letter of String is Uppercase using Regex Check if First Letter of String is Uppercase using isupper() The isupper() function returns …
Check if First Letter of String is Uppercase in PythonRead More
Check if String is Uppercase in Python
This article will discuss different ways to check if a given string is uppercase or not in Python. Table Of Contents Check if String is Uppercase using isupper() Check if String is Uppercase using Regex Check if String is Uppercase using isupper() In Python, the string class provides a member function isupper(). It returns True …
Convert Column Names to Uppercase in Pandas Dataframe
This article will discuss different ways to change column names to uppercase in a Pandas Dataframe. Table Of Contents Convert Dataframe Column Names to Uppercase using str.upper() Convert Dataframe Column Names to Uppercase using map() & upper() Convert Dataframe Column Names to uppercase using List Comprehension A DataFrame is a data structure that stores the …
Convert Column Names to Uppercase in Pandas DataframeRead More
Convert Column Values to Uppercase in Pandas Dataframe
This article will discuss different ways to convert all values of a Pandas Dataframe column to uppercase in Python. Table of Contents Convert column values to uppercase using str.upper() Convert column values to uppercase using apply() Convert column values to uppercase using map() A DataFrame is a data structure that stores the data in rows …
Convert Column Values to Uppercase in Pandas DataframeRead More
Convert a character to uppercase in C++
This article will discuss different ways to convert a character to uppercase in C++. Table of Contents Convert a character to uppercase using toupper() function Convert a character to uppercase using the ASCII values Convert a character to uppercase using toupper() function C++ provides a function std::toupper(char c) to get a uppercase equivalent of a …
Convert a string to uppercase in C++
In this article, we will discuss different ways to convert a string to uppercase in C++. Table Of Contents Method 1: Using std::toupper() & for_each() Method 2: Using transform() & toupper() Method 3: Using transform() & Lambda Function Method 4: Using for loop Summary Method 1: Using std::toupper() & for_each() Using STL Algorithm for_each(), we …