Is String Numeric





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

10
Date Submitted Thu. Aug. 3rd, 2006 11:54 AM
Revision 1
Helper bobbyrward
Tags boost | CPlusPlus | preprocessor | shared_ptr
Comments 0 comments
template function to create a boost::shared_ptr in the form

boost::shared_ptr classPtr = new_ptr(Arg1, Arg2);

You can also make new_ptr_access a friend of className and make the constructor and destructor private.

This keeps the end user from:

Creating an instance manually on the heap
Creating an instance manually on the stack
Deleting a shared_ptr manually using "delete get()"
6
Date Submitted Thu. Aug. 3rd, 2006 12:10 PM
Revision 1
Helper bobbyrward
Tags boost | CPlusPlus | Format | printf
Comments 0 comments
boost::format gives you the ablility to safely use printf like formatting as well as positional format specifiers ala .NET.
7
Date Submitted Fri. Aug. 4th, 2006 8:22 AM
Revision 1
Beginner plinge
Tags CPlusPlus | MFC
Comments 1 comments
Simple tests for dir and file existance. Path creation and removal.
10
Date Submitted Tue. Aug. 8th, 2006 1:19 AM
Revision 1
Beginner ciorga
Tags CPlusPlus | float | int | toString
Comments 1 comments
Transform any basic type to string. Very handy for log messages

Usage:

int i(12);
float j(3.14);
cout
8
Date Submitted Wed. Aug. 9th, 2006 6:12 AM
Revision 1
Helper bobbyrward
Tags C | conversion | CPlusPlus | hexadecimal
Comments 3 comments
Converts a string representation of a number with any base(binary, octal, decimal, hexadecimal, up to base 36) to a long int.
8
Date Submitted Wed. Aug. 23rd, 2006 6:07 PM
Revision 1
Beginner billism
Tags ASCII | C | conversion | CPlusPlus | EBCDIC
Comments 2 comments
Convert an ebcdic buffer to an ascii buffer.
5
Date Submitted Tue. Sep. 5th, 2006 8:05 PM
Revision 1
Beginner MovingParts
Tags FileStream | StreamReader | String | String.Split | VB
Comments 0 comments
One of best and unknown built in string function included in .NET is String.Split(). It has come in quite handy for my in the last 2 years that I thought I'd share. Pretty basic example here...and for my first post, I thought I'd throw in a little File IO (for free of course)! This was written in .NET 2.0 and it will take little to no modification to make it work in 1.0/1.1.
6
Date Submitted Wed. Sep. 6th, 2006 9:22 PM
Revision 1
Helper jbplou
Tags Security | String | VB.NET
Comments 1 comments
This snippet generates a secure hash string using VB.NET
4
Date Submitted Sat. Sep. 9th, 2006 9:22 PM
Revision 1
Helper jbplou
Tags String | VB.NET
Comments 2 comments
This function provides the reverse of a string. It is constructed using string builder because strings in .NET are immutable, while stringbuilders are not. Therefore large strings could be slow to reverse if a regular string was used for the working value that is returned.
2
Date Submitted Tue. Sep. 12th, 2006 8:00 AM
Revision 1
Beginner dogo
Tags File | String
Comments 0 comments
This function loads an File into an String.