Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » CParser enhancements
CParser enhancements [message #25752] Wed, 10 March 2010 16:30 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
First a short question: is there a class like MemStream, but which owns it's memory, grows with every Put and has a capacity. Basically a Vector<char> but with all the PutNN variants so I can add ints and doubles to it?

I couldn't find any and I'll implement one latter Today.

Now, for the real subject: I've attached some little enhancements to CParser. Basically just support for getting the column. It is 1 based. There is also a GetCharSpaces function, which should maybe have a better name.

Also, I'll need a CParser with optional space skipping which does not skip over end lines. So after a Spaces(), Char('\n') can be true. I'll inherit from CParser and override Spaces0 after I get nightly build with this patch.

I have a strange deja vu about this path, like I already posted it. I hope it's not a double post Laughing.
  • Attachment: Parser.h
    (Size: 4.24KB, Downloaded 217 times)
  • Attachment: parser.cpp
    (Size: 9.56KB, Downloaded 206 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FindFile::IsExecutable() [Feature request]
Next Topic: charset conversion
Goto Forum:
  


Current Time: Wed May 15 19:30:32 CEST 2024

Total time taken to generate the page: 0.01367 seconds