Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zemasoft committed Apr 27, 2018
1 parent 20212c5 commit a1cecd2
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 110 deletions.
12 changes: 6 additions & 6 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
Example 1 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/kpmUefnkBF4mD69Q)
Example 1 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/E38lvVerm55qDy8C)
=========

Compile time matching only.

Example 2 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/g1XFVimoQgYWNkwd)
Example 2 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/MgROPI42JCMrbDPj)
=========

Compile time and runtime check of ID's validity using a pattern.

Example 3 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/q3UELcXrii7ISXLu)
Example 3 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/IZ0bALQl2s5fJizh)
=========

Example 2 extended with a default pattern and with a user-defined string
literal.

Example 4 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/sU2yAXSZdCH8NAAK)
Example 4 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/goJ3qZcAqCcjQomE)
=========

Matching of command line arguments.

Example 5 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/34FWIpTTGDpYNJkV)
Example 5 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/0FLqhpOkNwc9gvI1)
=========

List files on a given path which match a given pattern.

Example 6 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/185ZwcFG3HKMq3RX)
Example 6 [![Try it online](https://img.shields.io/badge/try%20it-online-blue.svg)](https://wandbox.org/permlink/jkzdCaX2egYByfzc)
=========

Matching of generated DNA sequences.
4 changes: 2 additions & 2 deletions include/cx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef CX_HPP
#define CX_HPP

#define CX_VERSION_MAJOR 0
#define CX_VERSION_MINOR 2
#define CX_VERSION_MAJOR 1
#define CX_VERSION_MINOR 0
#define CX_VERSION_PATCH 0

#include "cx/algorithm.hpp"
Expand Down
4 changes: 2 additions & 2 deletions include/wildcards.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#ifndef WILDCARDS_HPP
#define WILDCARDS_HPP

#define WILDCARDS_VERSION_MAJOR 0
#define WILDCARDS_VERSION_MINOR 2
#define WILDCARDS_VERSION_MAJOR 1
#define WILDCARDS_VERSION_MINOR 0
#define WILDCARDS_VERSION_PATCH 0

#include "wildcards/cards.hpp"
Expand Down
194 changes: 97 additions & 97 deletions single_include/cx.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT DIRECTLY.
// Generated: 2018-04-23 18:35:25.466715844
// Generated: 2018-04-27 20:08:52.300450472
// Copyright Tomas Zeman 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef CX_HPP
#define CX_HPP
#define CX_VERSION_MAJOR 0
#define CX_VERSION_MINOR 2
#define CX_VERSION_MAJOR 1
#define CX_VERSION_MINOR 0
#define CX_VERSION_PATCH 0
#ifndef CX_ALGORITHM_HPP
#define CX_ALGORITHM_HPP
Expand Down Expand Up @@ -337,99 +337,6 @@
#define cfg_constexpr14
#endif
#endif
#ifndef CX_ITERATOR_HPP
#define CX_ITERATOR_HPP
#include <cstddef>
#include <initializer_list>
namespace cx
{
template <typename It>
constexpr It next(It it)
{
return it + 1;
}
template <typename It>
constexpr It prev(It it)
{
return it - 1;
}
template <typename C>
constexpr auto size(const C& c) -> decltype(c.size())
{
return c.size();
}
template <typename T, std::size_t N>
constexpr std::size_t size(const T (&)[N])
{
return N;
}
template <typename C>
constexpr auto empty(const C& c) -> decltype(c.empty())
{
return c.empty();
}
template <typename T, std::size_t N>
constexpr bool empty(const T (&)[N])
{
return false;
}
template <typename E>
constexpr bool empty(std::initializer_list<E> il)
{
return il.size() == 0;
}
template <typename C>
constexpr auto begin(const C& c) -> decltype(c.begin())
{
return c.begin();
}
template <typename C>
constexpr auto begin(C& c) -> decltype(c.begin())
{
return c.begin();
}
template <typename T, std::size_t N>
constexpr T* begin(T (&array)[N])
{
return &array[0];
}
template <typename E>
constexpr const E* begin(std::initializer_list<E> il)
{
return il.begin();
}
template <typename C>
constexpr auto cbegin(const C& c) -> decltype(cx::begin(c))
{
return cx::begin(c);
}
template <typename C>
constexpr auto end(const C& c) -> decltype(c.end())
{
return c.end();
}
template <typename C>
constexpr auto end(C& c) -> decltype(c.end())
{
return c.end();
}
template <typename T, std::size_t N>
constexpr T* end(T (&array)[N])
{
return &array[N];
}
template <typename E>
constexpr const E* end(std::initializer_list<E> il)
{
return il.end();
}
template <typename C>
constexpr auto cend(const C& c) -> decltype(cx::end(c))
{
return cx::end(c);
}
}
#endif
namespace cx
{
template <typename Iterator1, typename Iterator2>
Expand All @@ -443,7 +350,7 @@ while (first1 != last1 && first2 != last2 && *first1 == *first2)
return first1 == last1 && first2 == last2;
#else
return first1 != last1 && first2 != last2 && *first1 == *first2
? equal(next(first1), last1, next(first2), last2)
? equal(first1 + 1, last1, first2 + 1, last2)
: first1 == last1 && first2 == last2;
#endif
}
Expand Down Expand Up @@ -576,6 +483,99 @@ return std::forward<T>(lhs) == std::forward<U>(rhs);
};
}
#endif
#ifndef CX_ITERATOR_HPP
#define CX_ITERATOR_HPP
#include <cstddef>
#include <initializer_list>
namespace cx
{
template <typename It>
constexpr It next(It it)
{
return it + 1;
}
template <typename It>
constexpr It prev(It it)
{
return it - 1;
}
template <typename C>
constexpr auto size(const C& c) -> decltype(c.size())
{
return c.size();
}
template <typename T, std::size_t N>
constexpr std::size_t size(const T (&)[N])
{
return N;
}
template <typename C>
constexpr auto empty(const C& c) -> decltype(c.empty())
{
return c.empty();
}
template <typename T, std::size_t N>
constexpr bool empty(const T (&)[N])
{
return false;
}
template <typename E>
constexpr bool empty(std::initializer_list<E> il)
{
return il.size() == 0;
}
template <typename C>
constexpr auto begin(const C& c) -> decltype(c.begin())
{
return c.begin();
}
template <typename C>
constexpr auto begin(C& c) -> decltype(c.begin())
{
return c.begin();
}
template <typename T, std::size_t N>
constexpr T* begin(T (&array)[N])
{
return &array[0];
}
template <typename E>
constexpr const E* begin(std::initializer_list<E> il)
{
return il.begin();
}
template <typename C>
constexpr auto cbegin(const C& c) -> decltype(cx::begin(c))
{
return cx::begin(c);
}
template <typename C>
constexpr auto end(const C& c) -> decltype(c.end())
{
return c.end();
}
template <typename C>
constexpr auto end(C& c) -> decltype(c.end())
{
return c.end();
}
template <typename T, std::size_t N>
constexpr T* end(T (&array)[N])
{
return &array[N];
}
template <typename E>
constexpr const E* end(std::initializer_list<E> il)
{
return il.end();
}
template <typename C>
constexpr auto cend(const C& c) -> decltype(cx::end(c))
{
return cx::end(c);
}
}
#endif
#ifndef CX_STRING_VIEW_HPP
#define CX_STRING_VIEW_HPP
#include <cstddef>
Expand Down
6 changes: 3 additions & 3 deletions single_include/wildcards.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT DIRECTLY.
// Generated: 2018-04-23 18:35:25.512890420
// Generated: 2018-04-27 20:08:52.393001353
// Copyright Tomas Zeman 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef WILDCARDS_HPP
#define WILDCARDS_HPP
#define WILDCARDS_VERSION_MAJOR 0
#define WILDCARDS_VERSION_MINOR 2
#define WILDCARDS_VERSION_MAJOR 1
#define WILDCARDS_VERSION_MINOR 0
#define WILDCARDS_VERSION_PATCH 0
#ifndef WILDCARDS_CARDS_HPP
#define WILDCARDS_CARDS_HPP
Expand Down

0 comments on commit a1cecd2

Please sign in to comment.