1 //===-- lib/Parser/char-set.cpp -------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "flang/Parser/char-set.h"
11 namespace Fortran::parser
{
13 std::string
SetOfChars::ToString() const {
15 SetOfChars set
{*this};
16 for (char ch
{' '}; !set
.empty(); ++ch
) {
18 set
= set
.Difference(ch
);
24 } // namespace Fortran::parser