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 Jovibor
String to number conversion library, for char and wchar_t strings