stdstring
std::string::find_first_of does not return the expected value
I am trying to create an XML parser in C++. I am currently using cygwin and gcc to compile and gdb to debug. I have this piece of code:[详细]
2023-04-11 20:37 分类:问答C++ std::string and string
I don\'t suppose anyone tell me whats the difference between using the std::string and just the string data type in C++??[详细]
2023-04-09 16:48 分类:问答boost::interprocess::basic_string as std::string
I am trying to replace a class method which returns const std::string & with const boost::interprocess::basic_string &. The main challenge I am facing is the incompatibility between the two cl[详细]
2023-04-05 15:10 分类:问答How to efficiently copy a std::vector<char> to a std::string
This question is a flip开发者_运维百科 side of this How to efficiently copy a std::string into a vector[详细]
2023-04-03 23:16 分类:问答Do compilers usually have special optimizations for strings?
Often times you see things like std::map<std::string, somethingelse> m_named_objects; or std::string state;[详细]
2023-04-01 12:30 分类:问答How to implement safe copy constructor for class that has internal placement new (with std::string)
Here\'s my code: struct RS_Token { char id; char cleanup; unsigned char array[sizeof (std::string) > sizeof (double) ? sizeof (std::string) : sizeof (double)];[详细]
2023-03-27 10:36 分类:问答C++: Correct implementation for passing a std::string to a C function that wants to change the string?
I have a function in a third-party library written in C: char* fix_filename_slashes(char* path). This function expects a mutable C-string passed to it so it can change all the slashes in the path to t[详细]
2023-03-25 00:26 分类:问答a pointer bound to a function may only be used to call a function
I\'ve just moved from char arrays to std::string and I\'ve already ran into a problem, I\'m probably doing something extremely stupid, feel free to ridicule:[详细]
2023-03-24 17:26 分类:问答How to convert a XZ compression output to a NSString?
I\'ve successfully set up a small XZ compressor which returns a std::string that contains the compressed output. To process the result I need to \"convert\" the std::string to a NSString. Unfortunatel[详细]
2023-03-24 08:18 分类:问答std::string::back()
Why isn\'t there a std::basic_string<...>::back() member function? The functionality is obviously there, I mean, one can write[详细]
2023-03-19 08:35 分类:问答