Skip to content

Commit

Permalink
Relicense under BSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ednolan committed Oct 8, 2024
1 parent 64f7f6c commit a5e5848
Show file tree
Hide file tree
Showing 24 changed files with 164 additions and 700 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: BSL-1.0

# Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)

cmake_minimum_required(VERSION 3.27)
project(utfview CXX)
Expand Down
697 changes: 23 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# UtfView: C++26 UTF Transcoding Views

<!--
SPDX-License-Identifier: GPL-3.0-only
SPDX-License-Identifier: BSL-1.0
Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.txt or copy at
https://www.boost.org/LICENSE_1_0.txt)
-->

# UtfView: C++26 UTF Transcoding Views

[![CI](https://github.com/ednolan/UtfView/actions/workflows/ci.yml/badge.svg)](https://github.com/ednolan/utfview/actions) [![Coverage](https://coveralls.io/repos/github/ednolan/UtfView/badge.svg?branch=main)](https://coveralls.io/github/ednolan/UtfView?branch=main)

This repository implements the functionality proposed by P2728 for C++26, including:
Expand Down Expand Up @@ -106,4 +111,4 @@ This implementation of P2728 is a fork by Eddie Nolan of the implementation of P

## License

UtfView is licensed under GPLv3.
UtfView is licensed under BSL 1.0.
7 changes: 6 additions & 1 deletion include/UtfView/code_unit_view.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_CODE_UNIT_VIEW_HPP
#define UTFVIEW_CODE_UNIT_VIEW_HPP
Expand Down
7 changes: 6 additions & 1 deletion include/UtfView/detail/concepts.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_DETAIL_CONCEPTS_HPP
#define UTFVIEW_DETAIL_CONCEPTS_HPP
Expand Down
7 changes: 6 additions & 1 deletion include/UtfView/detail/constexpr_unless_msvc.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_DETAIL_CONSTEXPR_UNLESS_MSVC_HPP
#define UTFVIEW_DETAIL_CONSTEXPR_UNLESS_MSVC_HPP
Expand Down
7 changes: 6 additions & 1 deletion include/UtfView/detail/erroneous_behavior_global.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_DETAIL_ERRONEOUS_BEHAVIOR_GLOBAL_HPP
#define UTFVIEW_DETAIL_ERRONEOUS_BEHAVIOR_GLOBAL_HPP
Expand Down
7 changes: 6 additions & 1 deletion include/UtfView/null_term.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_NULL_TERM_HPP
#define UTFVIEW_NULL_TERM_HPP
Expand Down
7 changes: 6 additions & 1 deletion include/UtfView/to_utf_view.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_TO_UTF_VIEW_HPP
#define UTFVIEW_TO_UTF_VIEW_HPP
Expand Down
7 changes: 6 additions & 1 deletion paper/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: BSL-1.0

# Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)

add_custom_command(
OUTPUT P2728.html
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: BSL-1.0

# Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)

add_library(utfview INTERFACE)

Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: BSL-1.0

# Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)

add_library(
utfview_test_lib
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/code_unit_view.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <UtfView/code_unit_view.hpp>
#include <UtfView/detail/constexpr_unless_msvc.hpp>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/detail/concepts.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <UtfView/detail/concepts.hpp>
#include <tests/std_archetypes/iterator.hpp>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/framework.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <functional>
#include <map>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/framework.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_TESTS_FRAMEWORK_HPP
#define UTFVIEW_TESTS_FRAMEWORK_HPP
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/main.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <cstdlib>
#include <iostream>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/null_term.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <UtfView/null_term.hpp>
#include <concepts>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/readme_examples.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <UtfView/code_unit_view.hpp>
#include <UtfView/null_term.hpp>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/std_archetypes/exposition_only.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_TESTS_STD_ARCHETYPES_EXPOSITION_ONLY_HPP
#define UTFVIEW_TESTS_STD_ARCHETYPES_EXPOSITION_ONLY_HPP
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/std_archetypes/exposition_only.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <tests/std_archetypes/exposition_only.hpp>

Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/std_archetypes/iterator.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#ifndef UTFVIEW_TESTS_STD_ARCHETYPES_ITERATOR_HPP
#define UTFVIEW_TESTS_STD_ARCHETYPES_ITERATOR_HPP
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/std_archetypes/iterator.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <iterator>
#include <tests/std_archetypes/iterator.hpp>
Expand Down
7 changes: 6 additions & 1 deletion src/UtfView/tests/to_utf_view.t.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: BSL-1.0

// Copyright Eddie Nolan and Jonathan Wakely 2023 - 2024.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <UtfView/detail/constexpr_unless_msvc.hpp>
#include <UtfView/detail/erroneous_behavior_global.hpp>
Expand Down

0 comments on commit a5e5848

Please sign in to comment.