Better-Cpp / Better-C-Bot

Bot used in the Better C++ discord server
MIT License
6 stars 7 forks source link

Cppref Rewrite #12

Closed SqueakyBeaver closed 3 years ago

SqueakyBeaver commented 3 years ago

This fixes the std::cpp::string, c/string/byte/atof, and similar redundancy errors as well as displaying such results as std::string twice. This will also fix some things such as me forgetting to change print to await ctx.send.

Edit: TODO

SqueakyBeaver commented 3 years ago

It should be ready now. The search results are now displayed such as (header) string and (string) std::basic_string for C++ searches and (header) string and (string) byte (the "normal" string functions in C are on the byte string page). I think this clears up any confusion of where the presented items are located. This can be seen in the screenshots: cref cppref

Yuhanun commented 3 years ago

Actually, experimental is part of the library, not the language 🥺 I'm sorry but could you change that?

SqueakyBeaver commented 3 years ago

Yeah, I kind of nuked experimental from the search because of the std::experimental::..., but I think I could add a list of the headers that have repeated namespaces (all I can think of are experimental and chrono) and just say that the results are not 100% accurate because of the way cppreference named their links (experimental/fs instead of experimental/filesystem is my biggest worry)

SqueakyBeaver commented 3 years ago

nested namespaces ^ Example of the nested namespaces. I will continue to add more if needed