Home > Back-end >  For help: the key ci to find problems
For help: the key ci to find problems

Time:10-30

Dear bosses, I want to achieve a level of about 200 words in Chinese input string, find the position of a certain keywords appear inside the
Such as: input "my Chinese heart" lyrics, find out all the position of the "China" in
How to implement? Ask you a labyrinth greatly

CodePudding user response:

See String indexOf usage, StartIndex each time from the last time to find the location of the beginning, until I couldn't find it

CodePudding user response:

reference 1/f, old zizhu reply:
see String. The indexOf usage, StartIndex behind every time since the last time to find the location of the beginning, until find

Thank you, according to this train of thought to realize today I think

CodePudding user response:

By reading one character string flow through reading, read every one character at a time, counter plus 1, find Chinese string, the output position counter - 1 is the
  • Related