Extended Strings Arizona

The XString-class is a powerful extension to the standard CString-class

Local Companies

JDR Consulting
480-491-4756
1660 S. Alma School Rd. Ste 223
Mesa, AZ
Multi Edit Software Inc
480-610-2700
7532 E Dulciana Cir
Mesa, AZ
Component Software Inc
480-496-9303
5831 W Kesler St
Chandler, AZ
Vertex Inc
(480) 283-8600
2961 E Marlene Dr
Gilbert, AZ
Lariat Software, LLC.
800-647-2764
9201 N. 25th Ave. #260
Phoenix, AZ
hard disk data recovery
001-980-000-0000
Street
City, AZ
Aya Solutions
480-833-1727
1955 E Hackamore St
Mesa, AZ
Alphasource Technologies Inc Inc
520-620-6888
3120 W Corte Olivia
Tucson, AZ
Synapps LLC
(480) 664-6071
4649 E Carriage Ct
Gilbert, AZ
Wizard Computer Services
(480) 926-3144
2104 E Freeport Ln
Gilbert, AZ

provided by: 
Originally published at Internet.com


The XString-class is a powerfull extension to the standard CString-class. Whereever you use a CString you can now use a XString with much more functionality. The class includes many string-functions I missed in CString, like removing, replacing or inserting strings into another, convertingfunctions to double or int and case-insensitive find, replace and remove. But the most powerfull extension is a method I called 'Elementstrings'. Most of the functions are const and return a XString, so you can use them in an expression. The functionality of this class is not very difficult to understand or to implement, but in my case, it saves a lot of time in my projects.

If you miss some functions which could be usefull to extend this class please contact me.

Additional String functions
What are Elementstrings?
Elementstring functions
Friend functions Download source file (8 KB) (comments in german)

Additional Stringfunctions:

Function Description Example Result XString num("12.345"); Double Convertion to double num.Double() 12.345 Int Convertion to int num.Int() 12 Char Convertion to char num.Char() 1 Bool Convertion to bool num.Bool() true XString test("Test Test"); Remove Remove first occurence of a string, char or range test.Remove('e') "Tst Test" RemoveAll Remove all occurences of a string or char test.RemoveAll("e") "Tst Tst" Replace Replace first occurence of a string, char or range with another string test.Replace("x", "e") "Txst Test" ReplaceAll Replace all occurences of a string or char with another string test.ReplaceAll("x", "e") "Txst Txst" Insert Inserts a string at a given position test.Insert("e", 1) "Teest Test" XString op("Test");...

Read article at Internet.com site

Featured Local Company

hard disk data recovery

001-980-000-0000
Street
City, AZ

Related Articles
- Custom MSBuild Task Development with Visual C++ Arizona
Visual C++ 2010 sees the integration of MSBuild with Visual C++. MSBuild is Microsoft's common build engine and one of its key design goals is the ability to support a high-degree of flexibility in customizing the build process. See how a custom MSBuild task can be built in Visual C++, and how the task can be used to customize the build process of other Visual C++ 2010 projects.
- Using the Visual Studio 6.0 Driver Build Environment Arizona
- CColor class Overview Arizona
- List control with single / double separator lines Arizona
Related Articles
- Custom MSBuild Task Development with Visual C++ Arizona
Visual C++ 2010 sees the integration of MSBuild with Visual C++. MSBuild is Microsoft's common build engine and one of its key design goals is the ability to support a high-degree of flexibility in customizing the build process. See how a custom MSBuild task can be built in Visual C++, and how the task can be used to customize the build process of other Visual C++ 2010 projects.
- Using the Visual Studio 6.0 Driver Build Environment Arizona
- CColor class Overview Arizona
- List control with single / double separator lines Arizona
Related Local Events
Toastmasters
Dates: 3/25/2010 - 3/25/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 5/6/2010 - 5/6/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 6/17/2010 - 6/17/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 7/29/2010 - 7/29/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 9/9/2010 - 9/9/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML