Skip to content

Commit 2ecef0a

Browse files
committed
Rename string-bare to string-lite
1 parent 69dea72 commit 2ecef0a

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

.tgitconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[bugtraq]
2-
url = https://github.com/martinmoene/string-bare/issues/%BUGID%
2+
url = https://github.com/martinmoene/string-lite/issues/%BUGID%
33
number = true
44
logregex = "(\\s*(,|and)?\\s*#\\d+)+\n(\\d+)"

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# Copyright 2025-2025 by Martin Moene
22
#
3-
# https://github.com/martinmoene/string-bare
3+
# https://github.com/martinmoene/string-lite
44
#
55
# Distributed under the Boost Software License, Version 1.0.
66
# (See accompstringing file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
77

88
cmake_minimum_required( VERSION 3.5 FATAL_ERROR )
99

10-
# string-bare project and version, updated by script/update-version.py:
10+
# string-lite project and version, updated by script/update-version.py:
1111

1212
project(
1313
string_bare
1414
VERSION 0.0.0
1515
# DESCRIPTION "A strong string for C++98, C++11 and later in a single-file header-only library"
16-
# HOMEPAGE_URL "https://github.com/martinmoene/string-bare"
16+
# HOMEPAGE_URL "https://github.com/martinmoene/string-lite"
1717
LANGUAGES CXX )
1818

1919
# Package information:
2020

2121
set( unit_name "string" )
2222
set( package_nspace "nonstd" )
23-
set( package_name "${unit_name}-bare" )
23+
set( package_name "${unit_name}-lite" )
2424
set( package_version "${${PROJECT_NAME}_VERSION}" )
2525

2626
message( STATUS "Project '${PROJECT_NAME}', package '${package_name}' version: '${package_version}'")
@@ -35,8 +35,8 @@ endif()
3535

3636
# If toplevel project, enable building and performing of tests, disable building of examples:
3737

38-
option( STRING_BARE_OPT_BUILD_TESTS "Build and perform string-bare tests" ${STRING_IS_TOPLEVEL_PROJECT} )
39-
option( STRING_BARE_OPT_BUILD_EXAMPLES "Build string-bare examples" OFF )
38+
option( STRING_BARE_OPT_BUILD_TESTS "Build and perform string-lite tests" ${STRING_IS_TOPLEVEL_PROJECT} )
39+
option( STRING_BARE_OPT_BUILD_EXAMPLES "Build string-lite examples" OFF )
4040

4141
# If requested, build and perform tests, build examples:
4242

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# string bare: string facilities for C++11 and later (In Progress)
1+
# string lite: string facilities for C++11 and later (In Progress)
22

3-
[![Language](https://img.shields.io/badge/C%2B%2B-11/14/17/20/23-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization) [![License](https://img.shields.io/badge/license-BSL-blue.svg)](https://opensource.org/licenses/BSL-1.0) [![Build Status](https://github.com/martinmoene/string-bare/actions/workflows/ci.yml/badge.svg)](https://github.com/martinmoene/string-bare/actions/workflows/ci.yml) [![Version](https://badge.fury.io/gh/martinmoene%2Fstring-bare.svg)](https://github.com/martinmoene/string-bare/releases) [![download](https://img.shields.io/badge/latest-download-blue.svg)](https://github.com/martinmoene/string-bare/blob/master/include/nonstd/string.hpp) <!-- [![Conan](https://img.shields.io/badge/on-conan-blue.svg)](https://conan.io/center/string-bare) -->[![Try it on wandbox](https://img.shields.io/badge/on-wandbox-blue.svg)](https://wandbox.org/permlink/lPob3Qz2o4S3hKpj) [![Try it on godbolt online](https://img.shields.io/badge/on-godbolt-blue.svg)](https://godbolt.org/z/6a5GWY8dP)
3+
[![Language](https://img.shields.io/badge/C%2B%2B-11/14/17/20/23-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization) [![License](https://img.shields.io/badge/license-BSL-blue.svg)](https://opensource.org/licenses/BSL-1.0) [![Build Status](https://github.com/martinmoene/string-lite/actions/workflows/ci.yml/badge.svg)](https://github.com/martinmoene/string-lite/actions/workflows/ci.yml) [![Version](https://badge.fury.io/gh/martinmoene%2Fstring-lite.svg)](https://github.com/martinmoene/string-lite/releases) [![download](https://img.shields.io/badge/latest-download-blue.svg)](https://github.com/martinmoene/string-lite/blob/master/include/nonstd/string.hpp) <!-- [![Conan](https://img.shields.io/badge/on-conan-blue.svg)](https://conan.io/center/string-lite) -->[![Try it on wandbox](https://img.shields.io/badge/on-wandbox-blue.svg)](https://wandbox.org/permlink/lPob3Qz2o4S3hKpj) [![Try it on godbolt online](https://img.shields.io/badge/on-godbolt-blue.svg)](https://godbolt.org/z/bW7TYP7xv)
44

55
**Note**: this library was previously named *string-bare*, the original *string-lite* has been renamed to [*string-non-lite*](https://github.com/martinmoene/string-non-lite).
66

77
Another attempt at a hopefully generally useful C++ string algorithm library.
88

99
I'm still pondering to add functions that take a regular expression, as `std::regex`and as string (using `*_re()` function names), and the API to use for that.
1010

11-
For now, have a look at section [Documentation of *string bare*](#syn-doc) and section [*string-bare* test specification](#a2) for the functions envisioned / implemented (at the moment). The in-place modification class of functions is decidedly absent.
11+
For now, have a look at section [Documentation of *string lite*](#syn-doc) and section [*string-lite* test specification](#a2) for the functions envisioned / implemented (at the moment). The in-place modification class of functions is decidedly absent.
1212

1313
In general, functions take `string_view`s and thereby `char const *`, `std::string` and `std::string_view` ([note 1](#note-1)) as arguments en produce (return) a `bool`, `size_t`, `std::string` or a collection of `string_view`s.
1414

@@ -69,32 +69,32 @@ prompt> g++ -std=c++11 -Wall -I../include -o 01-basic.exe 01-basic.cpp && 01-bas
6969

7070
## In a nutshell
7171

72-
**string bare** is a single-file header-only library to provide various string algorithms. Firstly meant to get you up and running easily, not necessarily to provide everything that might be useful and in the most efficient manner.
72+
**string lite** is a single-file header-only library to provide various string algorithms. Firstly meant to get you up and running easily, not necessarily to provide everything that might be useful and in the most efficient manner.
7373

74-
Creating *string bare* I've had a look at the [C++ standard](https://eel.is/c++draft/#strings), [Boost](https://www.boost.org/doc/libs/1_60_0/doc/html/string_algo.html), [Facebook Folly](https://github.com/facebook/folly/blob/master/folly/String.h), the [Python standard library](https://docs.python.org/3/library/string.html), the [proposal for `std::split()`](http://wg21.link/n3593) and several algorithms I created over time.
74+
Creating *string lite* I've had a look at the [C++ standard](https://eel.is/c++draft/#strings), [Boost](https://www.boost.org/doc/libs/1_60_0/doc/html/string_algo.html), [Facebook Folly](https://github.com/facebook/folly/blob/master/folly/String.h), the [Python standard library](https://docs.python.org/3/library/string.html), the [proposal for `std::split()`](http://wg21.link/n3593) and several algorithms I created over time.
7575

76-
**Features and properties of string bare** are ease of installation (single header), freedom of dependencies other than the standard library.
76+
**Features and properties of string lite** are ease of installation (single header), freedom of dependencies other than the standard library.
7777

7878
## License
7979

80-
*string bare* is distributed under the [Boost Software License](https://github.com/martinmoene/bit-bare/blob/master/LICENSE.txt).
80+
*string lite* is distributed under the [Boost Software License](https://github.com/martinmoene/bit-lite/blob/master/LICENSE.txt).
8181

8282
## Dependencies
8383

84-
*string bare* has no other dependencies than the [C++ standard library](http://en.cppreference.com/w/cpp/header).
84+
*string lite* has no other dependencies than the [C++ standard library](http://en.cppreference.com/w/cpp/header).
8585

8686
## Installation and use
8787

88-
*string bare* is a single-file header-only library. Put `string.hpp` in the [include](include) folder directly into the project source tree or somewhere reachable from your project.
88+
*string lite* is a single-file header-only library. Put `string.hpp` in the [include](include) folder directly into the project source tree or somewhere reachable from your project.
8989

9090
## Synopsis
9191

9292
**Contents**
93-
[Documentation of *string bare*](#documentation-of-string-bare)
93+
[Documentation of *string lite*](#documentation-of-string-lite)
9494
[Configuration](#configuration)
9595

9696
<a id="syn-doc"></a>
97-
### Documentation of *string bare*
97+
### Documentation of *string lite*
9898

9999
The following table presents types, values and simplified, short prototypes of the functions in _string-bare_'s `nonstd` namespace.
100100

@@ -176,7 +176,7 @@ The following table presents types, values and simplified, short prototypes of t
176176

177177
#### Tweak header
178178

179-
If the compiler supports [`__has_include()`](https://en.cppreference.com/w/cpp/preprocessor/include), *string bare* supports the [tweak header](https://vector-of-bool.github.io/2020/10/04/lib-configuration.html) mechanism. Provide your *tweak header* as `nonstd/string.tweak.hpp` in a folder in the include-search-path. In the tweak header, provide definitions as documented below, like `#define string_CPLUSPLUS 201103L`.
179+
If the compiler supports [`__has_include()`](https://en.cppreference.com/w/cpp/preprocessor/include), *string lite* supports the [tweak header](https://vector-of-bool.github.io/2020/10/04/lib-configuration.html) mechanism. Provide your *tweak header* as `nonstd/string.tweak.hpp` in a folder in the include-search-path. In the tweak header, provide definitions as documented below, like `#define string_CPLUSPLUS 201103L`.
180180

181181
#### Provided character types
182182

@@ -222,10 +222,10 @@ TBD
222222
<a id="a1"></a>
223223
### A.1 Compile-time information
224224

225-
In the test runner, the version of *string-bare* is available via tag `[.version]`. The following tags are available for information on the compiler and on the C++ standard library used: `[.compiler]`, `[.stdc++]`, `[.stdlanguage]` and `[.stdlibrary]`.
225+
In the test runner, the version of *string-lite* is available via tag `[.version]`. The following tags are available for information on the compiler and on the C++ standard library used: `[.compiler]`, `[.stdc++]`, `[.stdlanguage]` and `[.stdlibrary]`.
226226

227227
<a id="a2"></a>
228-
### A.2 *string-bare* test specification
228+
### A.2 *string-lite* test specification
229229

230230
<!-- string-main.t.exe -l @ | cut --delimiter=: -f 1 |sort |uniq |clip -->
231231
<!-- string-main.t.exe -l |grep -v _re |grep -v regex |clip -->

example/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2025-2025 by Martin Moene
22
#
3-
# https://github.com/martinmoene/span-bare
3+
# https://github.com/martinmoene/span-lite
44
#
55
# Distributed under the Boost Software License, Version 1.0.
66
# (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -12,7 +12,7 @@ endif()
1212
project( example LANGUAGES CXX )
1313

1414
# unit_name provided by toplevel CMakeLists.txt
15-
set( PACKAGE ${unit_name}-bare )
15+
set( PACKAGE ${unit_name}-lite )
1616

1717
message( STATUS "Subproject '${PROJECT_NAME}'")
1818

include/nonstd/string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Copyright (c) 2025-2025 Martin Moene
33
//
4-
// https://github.com/martinmoene/string-bare
4+
// https://github.com/martinmoene/string-lite
55
//
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2025-2025 by Martin Moene
22
#
3-
# https://github.com/martinmoene/string-bare
3+
# https://github.com/martinmoene/string-lite
44
#
55
# Distributed under the Boost Software License, Version 1.0.
66
# (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -12,8 +12,8 @@ endif()
1212
project( test LANGUAGES CXX )
1313

1414
set( unit_name "string" )
15-
set( PACKAGE ${unit_name}-bare )
16-
set( PROGRAM ${unit_name}-bare )
15+
set( PACKAGE ${unit_name}-lite )
16+
set( PROGRAM ${unit_name}-lite )
1717
set( SOURCES ${unit_name}-main.t.cpp ${unit_name}.t.cpp )
1818
set( HEADER "nonstd/string.hpp" )
1919
set( TWEAKD "." )

test/string-noexcept.t.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2016-2020 Martin Moene
22
//
3-
// https://github.com/martinmoene/string-bare
3+
// https://github.com/martinmoene/string-lite
44
//
55
// Distributed under the Boost Software License, Version 1.0.
66
// (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

0 commit comments

Comments
 (0)