• Forum
  • Lounge
  • Problem with the "Search" feature on thi

 
Problem with the "Search" feature on this site

May 5, 2014 at 5:49am
Hello Programmers

This is the umpteenth time I've got a search failed result after searching something(I was searching for the word 'split' in relation to strings). Is it really any technical problem with the search feature or is it I'm the only dumb person who's facing this kinda problem?
Last edited on May 5, 2014 at 5:49am
May 5, 2014 at 5:56am
I never use that search bar.

I just search google with:
site:cplusplus.com <whatever I want to search for>
May 5, 2014 at 6:01am
Well, thanks for that technique :)
May 5, 2014 at 7:57am
i borrowed this string splitter that i got from a guy on irc. im sure he wont mind if you use it

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
std::vector<std::string> split(std::string Content, std::string Delimiter="\n")
{
    std::size_t Begin = 0;
    std::size_t End = Begin;
    std::vector<std::string> Split;

    while(End != std::string::npos)
    {
        End = Content.find(Delimiter, Begin);
        Split.push_back(Content.substr(Begin, End - Begin));
        Begin = End + Delimiter.length();
    }

    return Split;
}
May 5, 2014 at 10:51am
Thanks Mr. Tables :)

But I was more worried about the search results than I was about splitting the string(which I did accomplish).
May 5, 2014 at 12:12pm
I don't know why you are having a problem. I get all kinds of good results.
http://www.cplusplus.com/search.do?q=split+string

Twicker has obviously put a lot of work into making the search function work nicely -- it is much better behaved than it ever was ever before.

And there's this:
http://www.cplusplus.com/faq/sequences/strings/split/
May 6, 2014 at 5:42am
I'm still not bluffing; here's a screenshot that this really happens when I use the search function : http://puu.sh/8Bbk7.png
May 6, 2014 at 6:31am
Maybe it is the browser you are using. It works fine for me with chrome. For me the search finds over 1k results. Actually yours might be chrome since I see bookmarks but a weird theme. So might be something else wrong.
Last edited on May 6, 2014 at 6:32am
May 6, 2014 at 7:02am
closed account (z05DSL3A)
The illusionist mirage,

Use the 'Spotted an error? contact us' link at the bottom of the page.
May 6, 2014 at 1:02pm
Well it works on all the browsers I have on my laptop. Including all of them below just to be thorough.
Chrome: http://prntscr.com/3gplbn
Ice Weasel: http://prntscr.com/3gpnld
Opera: http://prntscr.com/3gpob5
Chromium: http://prntscr.com/3gppq8
May 6, 2014 at 6:22pm
closed account (EwCjE3v7)
I never use the search, all I do is search for what I need on Google, and usually this site is in the top 3
May 6, 2014 at 9:03pm
It might even be something cached with your browser. Try clearing it and see if you still get the error.
Topic archived. No new replies allowed.