Hi,
I want to write an''ideal''class for general text processing.
What it has facilities should it?
How do I write this ?
Printable View
Hi,
I want to write an''ideal''class for general text processing.
What it has facilities should it?
How do I write this ?
What is wrong with a standard std::string class? :confused:
To mention the most popular variants: MSVC express or code::blocks
MSVC Express http://www.microsoft.com/express/Downloads/
Code::blocks http://www.codeblocks.org/
"code block" Is it a compiler?
No. Its an IDE, an integrated development environment. Generally these consist of a code editor, a build system, a debugger, a compiler and a linker. See here.
this si what the IDE?
What to do with text processing
IDE's have nothing to do with text processing, I just answered your 'what is codeblocks' question.
For text processing, what do you want to do?
Its already been answered. What is wrong with the std::string class. You can do all sorts of text processing with it as long as the text isn't unicode. Whilst std::string can be used to hold the byte sequence of UTF8 some member functions wont process the string correctly as UTF8 has variable size characters. wstring can be used for UTF16 on windows systems though again it has some limitations due to characters beyond the basic multilingual plane not fitting into 16 bits, though on *nix systems wstring uses I think 32 bit chars and so should work perfectly for UTF32. What do you want/need to do that is beyond the capabilities of the C++ string classes?
I need,
I want to find the answer to this question.
Quote:
Consider writing an ‘‘ideal’’ class for general text processing. Call it Text . What facilities
should it have? What implementation constraints and overheads are imposed by your set of
‘‘ideal’’ facilities?
So what is *your* set of ‘‘ideal’’ facilities? :confused: