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

CodeGuru
Earthweb Search
Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
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
Custom Products
Blog
Economy Server Racks
Promotional Pens
Server Racks
Web Design
Internet Security
Giveaways
Corporate Awards
Promos and Premiums
Health Insurance
Domains for Business
Register Domain
Car Donation


RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

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

Download these IBM resources today!
e-Kit: IBM Rational Systems Development Solution
With systems teams under so much pressure to develop products faster, reduce production costs, and react to changing business needs quickly, communication and collaboration seem to get lost. Now, theres a way to improve product quality and communication.

Download: IBM Rational Rose Technical Developer V7.0
Based on the industry standard Unified Modeling Language (UML), Rational Rose Technical Developer provides a highly automated and reliable solution to the unique problems of concurrency and distribution.

Download: Compound Analysis for Java
A Linux-based Compound XML Document Editor using the an Eclipse Modeling Framework to provide a more customized editing experience for developers.

Download: Be Agile, with DB2 on Rails
The Starter Toolkit for DB2 on Rails is a conveniently-packaged set of products and technologies that enables the quick creation of a configuration for building DB2 Web apps using Ruby on Rails technology.

Download: IBM Rational Data Architect V7.0
IBM Rational Data Architect is an enterprise data modeling and integration design tool designed to help data architects design relational and federated databases, understand data assets and their relationships and streamline database projects.

Download: IBM Rational Software Modeler V7.0
IBM Rational Software Modeler is a Unified Modeling Language (UML) 2.0-based visual modeling and design tool for architects, systems analysts, and designers who are responsible for specifying and maintaining system or software models and designs.
Demo: Unified Change Management using ClearCase and ClearQuest (Part 2 of 4). Learn how to track and assign a Defect using Rational ClearCase and ClearQuest.

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:
angelorohit - 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


Bring your user interfaces to life with richer, more intuitive information displays. Read more.
Intel Go Parallel Portal: Translating Multicore Power into Application Performance
Developing Intelligent Communications? Visit the Avaya Developer Connection Center on DevX.
Ipswitch: Solutions for Managing Your Network and Your Data
Download: Elementool Bug Tracking--Keep Software Fixes On Course.

Solutions