Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / programming / string

String

string

Great Reads

by Sarang Date
Any string input can have these many possible states1) String is null2) String is empty3) String contains nothing but white space4) String has some contentTill now, .NET had static method for stringbool string.IsNullOrEmpty()which handled first two conditions for...
by jfriedman
public static class StringExtensions { public static bool IsNullOrWhitespace(this string s) { if (null == s) return true; return string.IsNullOrEmpty(s.Trim()); } }
by Ben Hall (failingfast.io)
It's worthwhile knowing the what, when and why to improving string comparison performance. In this article, I will explore one way, string interning.
by JesseChisholm
FormatEx is a method that allows structuring formatting placeholders indirectly from arguments.

Latest Articles

by Sarang Date
Any string input can have these many possible states1) String is null2) String is empty3) String contains nothing but white space4) String has some contentTill now, .NET had static method for stringbool string.IsNullOrEmpty()which handled first two conditions for...
by jfriedman
public static class StringExtensions { public static bool IsNullOrWhitespace(this string s) { if (null == s) return true; return string.IsNullOrEmpty(s.Trim()); } }
by Ben Hall (failingfast.io)
It's worthwhile knowing the what, when and why to improving string comparison performance. In this article, I will explore one way, string interning.
by JesseChisholm
FormatEx is a method that allows structuring formatting placeholders indirectly from arguments.

All Articles

Sort by Score

string 

by Bhargav Kaneria
How to check if a string has all unique characters
by Arctype SQL
How to use full text search and the match keyword to find a string in every table in a MySQL database
by ozkary
Serialize JSON Object to String
by User 8984948
I wrote the following two functions with the purpose of compressing / decompressing string values within a Delphi application.
by Paul D. Sheriff
String handling tips
by Bill Wagner
String Interpolation and the Conditional Operators
by Thomas Daniels
This blog posts teaches you how to transpose the rows and columns of a two-dimensional array, jagged array and string in C#.
by Shahriar Iqbal Chowdhury/Galib
TSQL split a string by delimiter