Skip to content

Commit

Permalink
Added LICENSE.txt and copyright headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
tahonermann committed Oct 14, 2015
1 parent bec0609 commit ed54e1d
Show file tree
Hide file tree
Showing 38 changed files with 237 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -1,3 +1,9 @@
# Copyright (c) 2015, Tom Honermann
#
# This file is distributed under the MIT License. See the accompanying file
# LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
# and conditions.

# Ignore all generated make dependency files.
*.d
# Ignore the generated 'test-stdtext' executable.
Expand Down
17 changes: 17 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
6 changes: 6 additions & 0 deletions Makefile
@@ -1,3 +1,9 @@
# Copyright (c) 2015, Tom Honermann
#
# This file is distributed under the MIT License. See the accompanying file
# LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
# and conditions.

all: test examples

.PHONY: test
Expand Down
6 changes: 6 additions & 0 deletions examples/tv_dump.cpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#include <cstdint>
#include <cstring>
#include <fstream>
Expand Down
6 changes: 6 additions & 0 deletions include/text_view
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_TEXT // {
#define TEXT_VIEW_TEXT

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/adl_customization.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_ADL_CUSTOMIZATION_HPP // {
#define TEXT_VIEW_ADL_CUSTOMIZATION_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/advance_to.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_ADVANCE_TO_HPP // {
#define TEXT_VIEW_ADVANCE_TO_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/archetypes.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_ARCHETYPES_HPP // {
#define TEXT_VIEW_ARCHETYPES_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/bounded_iterable.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_BOUNDED_ITERABLE_HPP // {
#define TEXT_VIEW_BOUNDED_ITERABLE_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/character.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_CHARACTER_HPP // {
#define TEXT_VIEW_CHARACTER_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/charsets.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_CHARSETS_HPP // {
#define TEXT_VIEW_CHARSETS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/charsets/any_charset.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_ANY_CHARSET_HPP // {
#define TEXT_VIEW_ANY_CHARSET_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/charsets/basic_charsets.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_BASIC_CHARSETS_HPP // {
#define TEXT_VIEW_BASIC_CHARSETS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/charsets/std_charsets.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_STD_CHARSETS_HPP // {
#define TEXT_VIEW_STD_CHARSETS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/charsets/unicode_charsets.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_UNICODE_CHARSETS_HPP // {
#define TEXT_VIEW_UNICODE_CHARSETS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_CODECS_HPP // {
#define TEXT_VIEW_CODECS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/trivial_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_CODECS_TRIVIAL_CODEC_HPP // {
#define TEXT_VIEW_CODECS_TRIVIAL_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf16_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF16_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF16_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf16be_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF16BE_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF16BE_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf16bom_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF16BOM_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF16BOM_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf16le_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF16LE_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF16LE_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf32be_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF32BE_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF32BE_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf32bom_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF32BOM_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF32BOM_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf32le_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF32LE_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF32LE_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf8_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF8_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF8_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/codecs/utf8bom_codec.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_CODECS_UTF8BOM_CODEC_HPP) // {
#define TEXT_VIEW_CODECS_UTF8BOM_CODEC_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/concepts.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_CONCEPTS_HPP // {
#define TEXT_VIEW_CONCEPTS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/encodings.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_ENCODINGS_HPP // {
#define TEXT_VIEW_ENCODINGS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/encodings/basic_encodings.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_BASIC_ENCODINGS_HPP // {
#define TEXT_VIEW_BASIC_ENCODINGS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/encodings/std_encodings.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_STD_ENCODINGS_HPP // {
#define TEXT_VIEW_STD_ENCODINGS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/encodings/unicode_encodings.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_UNICODE_ENCODINGS_HPP // {
#define TEXT_VIEW_UNICODE_ENCODINGS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/exceptions.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#if !defined(TEXT_VIEW_EXCEPTIONS_HPP) // {
#define TEXT_VIEW_EXCEPTIONS_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/riterator.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_RITERATOR_HPP // {
#define TEXT_VIEW_RITERATOR_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/text_iterator.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_TEXT_ITERATOR_HPP // {
#define TEXT_VIEW_TEXT_ITERATOR_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/text_view.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_TEXT_VIEW_HPP // {
#define TEXT_VIEW_TEXT_VIEW_HPP

Expand Down
6 changes: 6 additions & 0 deletions include/text_view_detail/traits.hpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#ifndef TEXT_VIEW_TRAITS_HPP // {
#define TEXT_VIEW_TRAITS_HPP

Expand Down
4 changes: 4 additions & 0 deletions setenv-gcc-concepts.sh
@@ -1,5 +1,9 @@
#!/bin/sh

# This file is distributed under the MIT License. See the accompanying file
# LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
# and conditions.

alias cdtv="cd $PWD"

GCC_INSTALL_PATH="$HOME/products/gcc-c++-concepts"
Expand Down
6 changes: 6 additions & 0 deletions test/test-text_view.cpp
@@ -1,3 +1,9 @@
// Copyright (c) 2015, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.

#include <text_view_detail/adl_customization.hpp>
#include <text_view_detail/advance_to.hpp>
#include <text_view_detail/riterator.hpp>
Expand Down

0 comments on commit ed54e1d

Please sign in to comment.