{"image_url":null,"width":"100%","version":"1.0","published":"2006-07-31 14:14:34","categories":["C++ Tips"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa7m.hatenablog.jp%2Fentry%2F20060731%2F1154322874\" title=\"Boost String Algorithms Library\u306e\u4f7f\u3044\u65b9 \u305d\u306e1\uff1atrim/trim_left/trim_right - C++Builder\u597d\u304d\u306e\u79d8\u5bc6\u57fa\u5730\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://a7m.hatenablog.jp/","type":"rich","blog_title":"C++Builder\u597d\u304d\u306e\u79d8\u5bc6\u57fa\u5730","height":"190","provider_url":"https://hatena.blog","title":"Boost String Algorithms Library\u306e\u4f7f\u3044\u65b9 \u305d\u306e1\uff1atrim/trim_left/trim_right","author_name":"A7M","url":"https://a7m.hatenablog.jp/entry/20060731/1154322874","author_url":"https://blog.hatena.ne.jp/A7M/","provider_name":"Hatena Blog","description":"VCL\u306eAnsiString\u3084MFC\u306eCString\u3068\u6bd4\u3079\u3066\u3001C++\u6a19\u6e96\u306e\u6c4e\u7528\u6587\u5b57\u5217\u30af\u30e9\u30b9\u3067\u3042\u308bstd::string\u306f\u6a5f\u80fd\u304c\u8ca7\u5f31\u3002\u305d\u3044\u3064\u3092\u88dc\u5b8c\u3059\u308b\u306e\u304cboost\u306eString Algorithms Library\u3002 \u4ee5\u4e0b\u306f\u305d\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u3002 1.trim/trim_copy trim\u95a2\u6570\u306f\u6587\u5b57\u5217\u306e\u4e21\u7aef\u304b\u3089\u7a7a\u767d\u3092\u9664\u53bb\u3059\u308b\u3002trim_copy\u306f\u7a7a\u767d\u3092\u9664\u53bb\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u3001\u6587\u5b57\u5217\u305d\u306e\u3082\u306e\u306b\u306f\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3002 #include <string> #include <boost/algorithm/string.hpp> void foo() { std::string ss(\" foo \"); boo\u2026"}