The Wayback Machine - https://web.archive.org/web/20090723090156/http://www.codeguru.com:80/cpp/cpp/string/

CodeGuru
Earthweb Search
Login Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

follow us on Twitter

Member Sign In
User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

jobs.internet.com

internet.commerce
Partners & Affiliates
















Home >> Visual C++ / C++ >> C++ >> String Programming


String Programming

.NET



Splitting Strings with Regex in Managed C++ Applications
Rating:
Tom Archer - MSFT - 02/23/2005
Learn how to use this simple, yet useful, feature of the Regex class to delimit strings in your Managed C++ applications.

Managed Extensions: Parsing CSV Files with Regular Expressions
Rating:
Tom Archer - MSFT - 09/10/2004
Tom Archer illustrates how to parse comma-delimited text—when the data contains quotes, commas, and blanks—and return the data in a managed array.

Strings and Performance in .NET
Rating:
Kate Gregory - 01/28/2004
STL, String, StringBuilder, character arrays '— How do you get the best performance when working with strings?


CString Alternatives



Universal STL-Based Template String Class
Rating:
Andrey Marochko - 10/31/2003
Unite the best features from the STL's basic_string and MFC's CString classes using an STL-based template string class. Allows all classes based on this template to be completely interactive with each other. (The article and source code were updated.)

CPerlString - A Class to Utilize Perl String Functions
Rating: none
Yap Chun Wei - 03/06/2003
String manipulation and regular expressions have always been a strength of Perl. Here are two classes that encapsulate some of Perl's most useful string functions for C++. (The source code was updated.)

ApxString - MFC CString Replacement
Rating: none
James Bernard Schumacher III - 09/19/2001
A non-MFC alternative to CString.

Simple String Class
Rating: none
Yuantu Huang - 07/26/2000
Includes methods for formatting, searching (using wild cards) and numeric conversion to different data types

CUnicodeString Class
Rating: none
Alexander Keck - 01/14/2000
Updated source code!!

A Super String Class
Rating: none
Phil Haubert - 04/27/1999
A Super String Class

Fast and efficient CString replacement
Rating: none
Kamen Lilov - 02/09/1999
Fast and efficient CString replacement


CString Extensions



CString Extension for String Parsing [sscanf()]
Rating: none
Rainer Bauer - 10/12/2001
The class provided here extends the CString class by one function: Scanf().

CString Extensions for Resource Loading and String Formatting
Rating: none
Joshua Reed - 05/12/2000
Very nice CString extension classes that provide helper functions for loading resource strings and formatting strings

CString Extension for numerical IO
Rating: none
Michael A. Barnhart - 04/14/1999
CString Extension for numerical IO

Extended Strings
Rating: none
Joachim Raidl - 02/09/1999
Extended Strings

CString Extension
Rating: none
Zafir Anjum - 02/09/1999
CString Extension

CString extension for directory names
Rating: none
Richard Brock - 02/09/1999
CString extension for directory names


CString Manipulation



Managed Extensions: Measuring Strings
Rating:
Tom Archer - MSFT - 09/23/2004
Learn how to easily measure the height and width needed to display text values using .NET classes.

CString instead of LPCSTR
Rating: none
Jon Zyzyck - 04/16/2002
A simple routine to allow CString formatted strings to be used wherever a regular LPCSTR would be used, without needing to define a CString (ie, dynamically created and formatted LPCSTR strings)

A Simple CString Tokenizer
Rating: none
Richard Case - 03/03/1999
A Simple CString Tokenizer


General



Prefer std::string to char*
Rating:
Marius Bancila - 02/22/2007
Understand the benefits of using the STL's std::string class over the C-like character arrays.

MI Is not Mission Impossible
Rating:
Angelo Rohit - 12/18/2006
Read a guide to dealing with some of the problems encountered with multiple inheritance.


Regular Expressions



An alternative Regular Expression Class
Rating: none
Guy Gascoigne - Piggford - 02/09/1999
An alternative Regular Expression Class

Using Regular Expressions for Search/Replace
Rating:
Zafir Anjum - 02/09/1999
Using Regular Expressions for Search/Replace


String Arrays



Extending CStringArray
Rating: none
Anders M Eriksson - 01/15/2000
Advanced CStringArray class with a Find method


String Conversions



URI Encoding and Decoding
Rating:
jinq0123 - 11/02/2006
Learn about fast and portable URI encoding and decoding functions that use std::string as the argument and return type, and do the buffer conversion, including '\0'.

Guide to BSTR and C String Conversions
Rating:
Robert Pittenger - 08/19/2003
Converting to/from C strings and various Visual Basic BSTR string types.


String Programming



Fixed Length Strings
Rating: none
Poul Costinsky - 10/01/2002
Fixed Length Strings

Using Strings with a Switch
Rating: none
Swikar Sugandhi - 08/08/2002
Articles gives simple macros to achieve switch-case on strings. The same philosophy can be extended for switch-case on variables.

vsscanf - An Implementation for Windows
Rating: none
Anuj Seth - 05/20/2002
A vsscanf() implementation for Windows based on the API available on Unix.

Fast Numerical Formatting
Rating: none
Corneliu I. Tusnea - 11/06/2001
Two functions with very good performance that can be used to format a thousand separator and more.

Case Insensitive strstr
Rating: none
Petko Popov - 10/11/2001
Two different ways to do a case insensitive search.

Multi Language Resource Strings in a Single MC File
Rating:
Talal Tayyab - 06/12/2001
This article will describe how to provide multiple language resource strings using the RT_MESSAGETABLE format in a single .mc file.

Class to manipulate UNICODE string on Window 95/98
Rating: none
Kim, Sang-Yup - 04/22/2000
Class to manipulate UNICODE string on Window 95/98

CString In A Nutshell
Rating: none
Douglas Peterson - 02/27/1999
CString In A Nutshell

A class for double zeroterminated strings
Rating: none
Gert Rijs - 08/22/1998
A class for double zeroterminated strings