1-20 of 41
Previous
Next |
Left, Right and Mid String Functions for C#
by Hannes du Preez
Language: .NET||Expertise: Beginner
|
A Simple Password-Checking Routine
by Brian Abernathy
Here's a simple password-checking routine that ensures that the user-entered password matches specific password criteria.
|
Convert a Delimited String to a Generic List<string>
by Srinath MS
Split the string at the delimiter and then add each item to a new string list.
|
Using String.split(String) vs. Using a StringTokenizer
by Hrudananda Pattanaik
It's not always safe to use String.split(String). Consider using the String Tokenizer API instead.
|
Comparing Constant Strings with String Variables
by Ritesh Patel
Avoid NullPointerExceptions by comparing string constants with string variables—not the other way around.
|
Displaying Embedded Newline Characters from ASP.NET Resource Files
by Deepankar Sinha
Embedded newline (\n) characters don't display properly in the browser, but a simple character-replace operation does the trick.
|
Create an XML File or XmlDocument Directly from a StringBuilder
by Julio Henriquez
Creating an XML file (or XmlDocument object) using a StringBuilder is easier than working directly with the System.Xml.XmlDocument Class.
|
Build a Custom Formatter for a Java.util.logging Logger
by Leonard Anghel
See how to develop a custom log formatter and customize the formatter for your logging needs.
|
Handling Null Session and Request Variables
by Jarzebowski Mark
In ASP.NET, if you try to use a session or request variable before it has been set, you'll get an error.
|
Use GetBetween to Parse a String Between Two Strings
by Zachary Edwards
This tips shows how to use GetBetween to parse a String between two strings.
|
Truncate a Path String
by Srinath MS
Currently, there is no .NET class that provides this functionality. The workaround is to use the Windows Shell function (PathCompactPathEx).
|
Changing the Style of a String in JavaScript
by Deepak Choudhari
JavaScript's String object provides funtions that change the style of the text while it displays in the UI.
|
Encode and Decode URLs Using UTF-8
by Leonard Anghel
This tip shows you how to encode and decode your URLs using the UTF-8 character encoding.
|
Read a Tab Delimited Text File
by Arun Thomas
This tip shows how to read from a log file using a specified format.
|
A Function to Determine Whether a String Can Be Converted to a Number
by Roberto Chiavolini
Find out how to determine whether a string can be converted to a number.
|
Converting Numbers to Strings
by Baddy R
Instead of writing your own function to convert an integer or float to a string, just use the C function snprintf (in the stdio.h header) or the C++ class stringstream (in the sstream header).
|
Write a VB6 String that Contains Double Quotation Marks
by Xianzhong Zhu
There are typically two ways to express the string that contains double quotation marks.
|
Concatenating Strings
by Anthony Burke
When you're concatenating only a few strings, it's faster to add them than to use StringBuilder.
|
Passing Strings Between Delphi DLL and VBA
by Romeo Besas
Unlike other routines, this one doesn't need to pass the length of the returned string for later Trimming in VBA.
|
Create a Color Using "<<" and "|" Operators
by Leonard Anghel
This tip shows you how to create the RED color using the "<<" and "|" operators. After that, the color is used to fill a rectangle.
|
1-20 of 41
Previous
Next |