{"id":320,"date":"2012-09-26T08:23:09","date_gmt":"2012-09-26T01:23:09","guid":{"rendered":"http:\/\/nvntung.wordpress.com\/?p=320"},"modified":"2012-09-26T08:23:09","modified_gmt":"2012-09-26T01:23:09","slug":"implementation-of-trim-operations-stl-string","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/vi\/2012\/09\/26\/implementation-of-trim-operations-stl-string\/","title":{"rendered":"Study the ways to implement trim operations of std::string"},"content":{"rendered":"<h4>Introduction<\/h4>\n<p>The C++ Standard Template Library (STL, for short) contains the useful <span style=\"color:#0000ff;\">std::string<\/span> class, which provides a lot of common string operations. However, the well-known <span style=\"color:#0000ff;\">trim<\/span> operation was not implemented. The <span style=\"color:#0000ff;\">trim<\/span> operation performs removals of all unused spaces placed before and after the characters into a string.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The C++ Standard Template Library (STL, for short) contains the useful std::string class, which provides a lot of common string operations. However, the well-known trim operation was not implemented.&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[44,102],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-c-stl","tag-string-operations"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":0,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}