blob: 7f6b9c610d2822c4eda311b80afd7c1ecdc5748e [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "util/std_util.h"
#include <algorithm>
#include <cctype>
#include <string>
#include "util/osp_logging.h"
namespace openscreen {
std::string& RemoveWhitespace(std::string& s) {
s.erase(std::remove_if(s.begin(), s.end(), ::isspace), s.end());
return s;
}
} // namespace openscreen