MCPcopy Create free account
hub / github.com/apache/trafficserver / ltrim

Function ltrim

plugins/experimental/access_control/plugin.cc:205–213  ·  view source on GitHub ↗

* @brief a quick utility function to trim leading spaces. */

Source from the content-addressed store, hash-verified

203 * @brief a quick utility function to trim leading spaces.
204 */
205static void
206ltrim(String &target)
207{
208 String::size_type p(target.find_first_not_of(' '));
209
210 if (p != target.npos) {
211 target.erase(0, p);
212 }
213}
214
215/**
216 * @brief a quick utility function to get next duplicate header.

Callers 2

getCookieByNameFunction · 0.70
config.ccFile · 0.70

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected