The Wayback Machine - https://web.archive.org/web/20071011110301/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.
PDAs
PC Notebooks
Printers
Monitors

jobs.internet.com

internet.commerce
Partners & Affiliates
Holiday Gift Ideas
Hurricane Shutters
Marketing Products
Boat Donations
Corporate Awards
Business Gifts Canada
PDA Phones & Cases
Memory
Domain registration
Laptop Batteries
Affiliate Programs
Managed Hosting
Auto Insurance Quote
Prepaid Phone Card


RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

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

  Navigating Your IT Career
A career in information technology usually has its share of ups and downs. Download this Internet.com eBook to learn where the jobs are in IT, how to negotiate a salary, and helpful advice on job security and how to deal with a layoff. »
 
  Inside Spyware: A Guide to Finding, Removing, and Preventing Online Pests
Your organization's computers are possibly being used to send spam, harvest e-mail addresses, make purchases on stolen credit cards or take part in denial of service attacks. Learn how to indentify, avoid, and remove malware from computers and keep your network and machines safe. »
 
  Tips for Selecting Software Vendors
IT managers need a proven, steadfast process for sifting through the hundreds of choices available for each enterprise software market segment. There are a series of steps for ensuring a result that will survive the intense, long-term scrutiny this level of investment will certainly attract. »
 
  Storage Basics: A Guide to the World of Storage Technology
Regardless of industry, size, or age, businesses are awash in more data than ever before. Federal regulations require that data be stored, protected, and retrievable for a certain amount of time. Storage is also a growing area in IT, which means employment opportunities exist now, and should exist for some time. »
 
  Building Your Own IP PBX
If you're already into having control of your computing infrastructure, taking charge of your telephone network is a natural progression. Asterisk is an open source PBX that runs on Linux. It can free your organization from expensive commercial PBXs, and gives you complete control over your telephone services »
 
Whitepaper: How HP Helps IT, Facilities and Purchasing Do More for Less Together. Learn how technologies have converged to help you to work together to bring costs down and efficiencies up.

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


Fix bad addresses and phone numbers before they ruin your database. Download a free Data Quality Tools trial.
Cache', the world's fastest object database, does away with mapping. Free download.
Generate Complete .NET Web Apps in Minutes . Download Iron Speed Designer today.
Whitepaper: Verio FreeBSD Virtual Private Server (VPS) v3
Article: Migrating from Oracle--When SQL Server 2005 Makes Sense

Solutions