Home / Programming / Programming Languages / C++ / Study the ways to implement trim operations of std::string

Study the ways to implement trim operations of std::string

Print Friendly, PDF & Email

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. The trim operation performs removals of all unused spaces placed before and after the characters into a string.

comments

About Nguyen Vu Ngoc Tung

I love making new professional acquaintances. Don't hesitate to contact me via nguyenvungoctung@gmail.com if you want to talk about information technology, education, and research on complex networks analysis (i.e., metabolic networks analysis), data analysis, and applications of graph theory. Specialties: researching and proposing innovative business approaches to organizations, evaluating and consulting about usability engineering, training and employee development, web technologies, software architecture.