Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. text search

text search

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ali kanju
    wrote on last edited by
    #1

    how to implement text search logic in my application.

    M _ _ D 4 Replies Last reply
    0
    • A ali kanju

      how to implement text search logic in my application.

      M Offline
      M Offline
      Mahesh Kulkarni
      wrote on last edited by
      #2

      Please elaborate question what exactly you want? I think This Link[^] may give you some guideline.

      The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

      A 1 Reply Last reply
      0
      • A ali kanju

        how to implement text search logic in my application.

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        can you please elaborate your requirement?

        You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

        1 Reply Last reply
        0
        • M Mahesh Kulkarni

          Please elaborate question what exactly you want? I think This Link[^] may give you some guideline.

          The secret of life is not enjoyment but education through experience. - Swami Vivekananda.

          A Offline
          A Offline
          ali kanju
          wrote on last edited by
          #4

          i want to implement text search..it can be of all document or from current page only..up or down the document..like find dialog in standard applications.

          C 1 Reply Last reply
          0
          • A ali kanju

            i want to implement text search..it can be of all document or from current page only..up or down the document..like find dialog in standard applications.

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #5

            ali kanju wrote:

            i want to implement text search..it can be of all document or from current page only..up or down the document..like find dialog in standard applications.

            You still didn't provide any useful information. You are talking about pages and document, what are you talking about exactly ? How is your data stored ? Is this a big string, a list of strings, ... ? You also have to separate the problem in two distinct jobs: your program should first search for the matches (without showing that to the user), and then the information has to be displayed to the user. Both aspects really depends on which datatype you are working with, how you display the information to the user, ... So, if you want some useful help, you will need to provide a lot more of useful information.

            Cédric Moonen Software developer
            Charting control [v2.0] OpenGL game tutorial in C++

            1 Reply Last reply
            0
            • A ali kanju

              how to implement text search logic in my application.

              _ Offline
              _ Offline
              _Superman_
              wrote on last edited by
              #6

              You could start here - Regular Expressions in C++ with Boost.Regex[^]

              «_Superman_» I love work. It gives me something to do between weekends.

              1 Reply Last reply
              0
              • A ali kanju

                how to implement text search logic in my application.

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                There's a surplus of vagueness here. Unfortunately, all I can offer is the shotgun approach. See strstr(), strchr(), CString::Find(), and string::find().

                "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups