diff --git a/README.md b/README.md index a8e73bc..2cc8767 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Part of the [Boost C++ Libraries](http://github.com/boostorg). Boost.Locale is a library that provides high quality localization facilities in a C++ way. It was originally designed a part of [CppCMS](http://cppcms.sourceforge.net/) - a C++ Web Framework project and then contributed to Boost. -Boost.Locale gives powerful tools for development of cross platform localized software - the software that talks to users in their language. +Boost.Locale gives powerful tools for development of cross-platform localized software - the software that talks to users in their language. Provided Features: @@ -21,7 +21,7 @@ Provided Features: - Support for `char` and `wchar_t` - Experimental support for C++11 `char16_t` and `char32_t` strings and streams. -Boost.Locale enhances and unifies the standard library's API the way it becomes useful and convenient for development of cross platform and "cross-culture" software. +Boost.Locale enhances and unifies the standard library's API the way it becomes useful and convenient for development of cross-platform and "cross-culture" software. In order to achieve this goal Boost.Locale uses the-state-of-the-art Unicode and Localization library: ICU - International Components for Unicode. @@ -38,7 +38,7 @@ Distributed under the [Boost Software License, Version 1.0](https://www.boost.or ### Properties * C++11 -* Formatted with clang-format, see [`tools/format_source.sh`](https://github.com/boostorg/locale/blob/develop/tools/format_source.sh) +* Formatted with clang-format, see [`tools/format_sources.sh`](https://github.com/boostorg/locale/blob/develop/tools/format_sources.sh) ### Build Status diff --git a/tools/format_sources.sh b/tools/format_sources.sh index e358efe..907275a 100755 --- a/tools/format_sources.sh +++ b/tools/format_sources.sh @@ -14,8 +14,8 @@ CLANG_FORMAT="clang-format-14" if ! command -v "$CLANG_FORMAT" &> /dev/null; then echo "You need $CLANG_FORMAT in your PATH" exit 1 -fi +fi cd "$(dirname "$0")/.." -find . -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.ipp' \) -print0 | xargs -0 -n4 "$CLANG_FORMAT" -i --style=file +find . -type f \( -name '*.cpp' -o -name '*.hpp' \) -exec "$CLANG_FORMAT" -i --style=file {} \;