Opened 11 years ago

Closed 10 years ago

#6689 closed Bugs (fixed)

For String Algo's trim, documentation is misleading.

Reported by: Peter Pimley <peter.pimley@…> Owned by: Marshall Clow
Milestone: To Be Determined Component: string_algo
Version: Boost 1.48.0 Severity: Cosmetic
Keywords: Cc:

Description

The documentation for String Algo's trim functions states:

When parsing the input from a user, strings usually have unwanted leading or trailing characters.

Is that strictly true? There's no reason for a string to have leading or trailing spaces from, say, getline, a UI component, or a parameter in a URL.

It's certainly true that they can contain unwanted characters. Maybe in some situations they often do, but I think usually is misleading.

Change History (3)

comment:1 by anonymous, 11 years ago

Component: Documentationstring_algo
Owner: changed from Matias Capeletto to Marshall Clow

comment:2 by Marshall Clow, 11 years ago

(In [77343]) s/ususally/often/; Refs #6689

comment:3 by Marshall Clow, 10 years ago

Resolution: fixed
Status: newclosed

(In [78557]) Merged changes for Boost.Algorithm to release; Fixes #6596; Fixes #6689; Fixes #3215; Fixes #6840

Note: See TracTickets for help on using tickets.