CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: text processing

  1. #1
    Join Date
    Dec 2010
    Posts
    54

    text processing

    Hi,

    I want to write an''ideal''class for general text processing.
    What it has facilities should it?
    How do I write this ?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: text processing

    What is wrong with a standard std::string class?
    Victor Nijegorodov

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: text processing

    Quote Originally Posted by firattag View Post
    Hi,

    I want to write an''ideal''class for general text processing.
    What it has facilities should it?
    How do I write this ?
    I would suggest getting some kind of IDE that includes and editor, compiler, linker and debugger.

  4. #4
    Join Date
    Dec 2010
    Posts
    54

    Re: text processing

    Quote Originally Posted by GCDEF View Post
    I would suggest getting some kind of IDE that includes and editor, compiler, linker and debugger.

    What can I use to do it ?

  5. #5
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: text processing

    To mention the most popular variants: MSVC express or code::blocks
    Last edited by S_M_A; May 6th, 2011 at 03:54 PM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  6. #6
    Join Date
    Dec 2010
    Posts
    54

    Re: text processing

    Quote Originally Posted by S_M_A View Post
    To mention the most poular variants: MSVC express or code::blocks
    I do not know what they ?
    MSVC Express
    code::Blocks

  7. #7
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: text processing

    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  8. #8
    Join Date
    Dec 2010
    Posts
    54

    Re: text processing

    "code block" Is it a compiler?

  9. #9
    Join Date
    Nov 2008
    Location
    England
    Posts
    748

    Re: text processing

    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.
    Get Microsoft Visual C++ Express here or CodeBlocks here.
    Get STLFilt here to radically improve error messages when using the STL.
    Get these two can't live without C++ libraries, BOOST here and Loki here.
    Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
    Always use [code] code tags [/code] to make code legible and preserve indentation.
    Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.

  10. #10
    Join Date
    Dec 2010
    Posts
    54

    Re: text processing

    this si what the IDE?
    What to do with text processing

  11. #11
    Join Date
    Nov 2008
    Location
    England
    Posts
    748

    Re: 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?
    Last edited by Russco; May 7th, 2011 at 10:11 AM.
    Get Microsoft Visual C++ Express here or CodeBlocks here.
    Get STLFilt here to radically improve error messages when using the STL.
    Get these two can't live without C++ libraries, BOOST here and Loki here.
    Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
    Always use [code] code tags [/code] to make code legible and preserve indentation.
    Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.

  12. #12
    Join Date
    Dec 2010
    Posts
    54

    Re: text processing

    I need,
    I want to find the answer to this question.

    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?

  13. #13
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: text processing

    So what is *your* set of ‘‘ideal’’ facilities?
    Victor Nijegorodov

  14. #14
    Join Date
    Dec 2010
    Posts
    54

    Smile Re: text processing

    Quote Originally Posted by VictorN View Post
    So what is *your* set of ‘‘ideal’’ facilities?

    ok. )

  15. #15
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: text processing

    Quote Originally Posted by firattag View Post
    Quote Originally Posted by VictorN View Post
    So what is *your* set of ‘‘ideal’’ facilities?
    ok. )
    Well, your manner to answer the questions set to understand your problems could let the community just ignore your posts at all.
    Victor Nijegorodov

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured