FireSTARR
Loading...
Searching...
No Matches
Trim.h
1/* Copyright (c) Queen's Printer for Ontario, 2020. */
2/* Copyright (c) His Majesty the King in Right of Canada as represented by the Minister of Natural Resources, 2025. */
3
4/* SPDX-License-Identifier: AGPL-3.0-or-later */
5
6#pragma once
7#include <string>
8// from https://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring
9namespace fs::util
10{
15void trim_left(string* s);
20void trim_right(string* s);
25void trim(string* s);
31[[nodiscard]] string trim_left_copy(string s);
37[[nodiscard]] string trim_right_copy(string s);
43[[nodiscard]] string trim_copy(string s);
44}