StringParser

Persistent String Parser
Download

StringParser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • John Simmons
  • Publisher web site:
  • http://www.codeproject.com/Members/John-Simmons-outlaw-programmer
  • Operating Systems:
  • Windows All
  • File Size:
  • 61 KB

StringParser Tags


StringParser Description

This little tool was developed to be a small test application that will allow you to parse a string with quoted elements, insert / add / delete elements, and is CLS compliant.Essentially, the StringParser class accepts a delimited string, breaks it down into its delimited elements according to the specified delimiter string (or character), and stores it in a string list. You can also add to, insert into, or delete fro the list of parsed elements. Further it supports quoted strings. While you might be inclined to say say that the string.Split() method does the same thing, I agreee - to a point. It does indeed allow you to split a string using a character or a string as a delimiter, but it doesn't support quoted elements, nor does it (readily) provide a method for changing the list of elements.Personally, I don't see much use for a delimiter string, but someone requested such a feature in my original MFC/VC6 article, and the string.Split() method provides the functonality, so I figured I'd give it a shot in this version of the class. Another new feature (over and above what was provide din the C++ version of the article) is that when deleting a field, the programmer has the choice of deleting all instances of a given string, the first instance, or the last instance.


StringParser Related Software