Skip to main content

Thread: Viewing a buffer when using std::string advice.


i have task std::string datatype.

task need use kdevelop ide , able find size of buffer being used when performing operations upon strings, never having used kdevelop before, i'm @ complete loss.

kind give me direction how go viewing buffer in use? can it's contents viewed within window of ide, or have call functions 'cout' details buffer being used?

i'm @ complete loss this, info appreciated.

many many thanks.

i'm not kdevelop has this?

if need size of std::string, use size() (or length()) method.

if need examine size whilst debugging application, should able call method well. if want examine contents of data within string debugging, printing _m_dataplus._m_p attribute should suffice.

btw, can call function data() data stored within string.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Viewing a buffer when using std::string advice.


Ubuntu

Comments