mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 23:00:20 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f92940bfab | |||
| c5df271a1a | |||
| 6978da552e | |||
| e6895ea26b | |||
| d157311620 | |||
| 3a1efd2078 | |||
| 59c4c556bb | |||
| c59150c042 | |||
| d524755ec0 |
+29
-8
@@ -1,3 +1,30 @@
|
|||||||
|
# Generated by `boostdep --cmake static_string`
|
||||||
|
# Copyright 2020 Peter Dimov
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.5...3.16)
|
||||||
|
|
||||||
|
project(boost_static_string VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||||
|
|
||||||
|
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||||
|
|
||||||
|
add_library(boost_static_string INTERFACE)
|
||||||
|
add_library(Boost::static_string ALIAS boost_static_string)
|
||||||
|
|
||||||
|
target_include_directories(boost_static_string INTERFACE include)
|
||||||
|
|
||||||
|
target_link_libraries(boost_static_string
|
||||||
|
INTERFACE
|
||||||
|
Boost::assert
|
||||||
|
Boost::container_hash
|
||||||
|
Boost::static_assert
|
||||||
|
Boost::throw_exception
|
||||||
|
Boost::utility
|
||||||
|
)
|
||||||
|
|
||||||
|
else()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||||
#
|
#
|
||||||
@@ -7,12 +34,6 @@
|
|||||||
# Official repository: https://github.com/boostorg/static_string
|
# Official repository: https://github.com/boostorg/static_string
|
||||||
#
|
#
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.5.1)
|
|
||||||
|
|
||||||
if (POLICY CMP0074)
|
|
||||||
cmake_policy (SET CMP0074 NEW)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
function (DoGroupSources curdir rootdir folder)
|
function (DoGroupSources curdir rootdir folder)
|
||||||
@@ -40,8 +61,6 @@ endfunction()
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
project (StaticString VERSION 1)
|
|
||||||
|
|
||||||
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
@@ -150,3 +169,5 @@ file (GLOB_RECURSE PROJECT_FILES
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory (test)
|
add_subdirectory (test)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|||||||
+39
-240
@@ -8,252 +8,51 @@
|
|||||||
|
|
||||||
project static_string/doc ;
|
project static_string/doc ;
|
||||||
|
|
||||||
import os ;
|
|
||||||
import path ;
|
|
||||||
import boostbook ;
|
import boostbook ;
|
||||||
import quickbook ;
|
import ../../../tools/docca/docca.jam ;
|
||||||
import xsltproc ;
|
|
||||||
import doxygen ;
|
|
||||||
import modules ;
|
|
||||||
import saxonhe ;
|
|
||||||
import common ;
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Build the list of header files that Doxygen will scan. We need
|
|
||||||
# this list to inform the build system of the dependencies so the
|
|
||||||
# docs can be rebuild if any of the header files change.
|
|
||||||
#
|
|
||||||
|
|
||||||
local sources = [ path.glob-tree ../include/boost/static_string : *.hpp *.ipp : detail impl ] ;
|
docca.reference reference.qbk
|
||||||
|
|
||||||
# Get the configured paths to doxygen and xsltproc
|
|
||||||
|
|
||||||
.doxygen = [ doxygen.name ] ;
|
|
||||||
.doxygen ?= doxygen ;
|
|
||||||
|
|
||||||
#ECHO Using doxygen from "$(.doxygen)" ;
|
|
||||||
|
|
||||||
.xsltproc = [ xsltproc.name ] ;
|
|
||||||
.xsltproc ?= xsltproc ;
|
|
||||||
|
|
||||||
#ECHO Using xsltproc from "$(.xsltproc)" ;
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Invoke Doxygen to process the header files and produce the XML
|
|
||||||
# containing the description of the C++ declarations and extracted
|
|
||||||
# Javadoc comments.
|
|
||||||
#
|
|
||||||
make index.xml
|
|
||||||
:
|
:
|
||||||
./source.dox
|
xsl/custom-overrides.xsl
|
||||||
|
[ glob-tree-ex ../include/boost/static_string : *.hpp *.ipp : detail impl ]
|
||||||
:
|
:
|
||||||
@make_doxygen_xml
|
<doxygen:param>PROJECT_NAME=StaticString
|
||||||
:
|
<doxygen:param>PROJECT_BRIEF="String Library"
|
||||||
<dependency>$(sources)
|
<doxygen:param>ALIASES="esafe=\"@par Exception Safety\""
|
||||||
|
<doxygen:param>FILE_PATTERNS=
|
||||||
|
<doxygen:param>EXAMPLE_PATTERNS=
|
||||||
|
<doxygen:param>DISTRIBUTE_GROUP_DOC=YES
|
||||||
|
<doxygen:param>MACRO_EXPANSION=YES
|
||||||
|
<doxygen:param>EXPAND_ONLY_PREDEF=YES
|
||||||
|
<doxygen:param>PREDEFINED="\\
|
||||||
|
BOOST_STATIC_STRING_DOCS \\
|
||||||
|
\"BOOST_STATIC_STRING_CPP11_CONSTEXPR=constexpr\" \\
|
||||||
|
\"BOOST_STATIC_STRING_CPP14_CONSTEXPR=constexpr\" \\
|
||||||
|
\"BOOST_STATIC_STRING_CPP17_CONSTEXPR=constexpr\" \\
|
||||||
|
\"BOOST_STATIC_STRING_CPP20_CONSTEXPR=constexpr\""
|
||||||
|
<doxygen:param>ABBREVIATE_BRIEF=
|
||||||
|
<doxygen:param>INLINE_INHERITED_MEMB=YES
|
||||||
|
<doxygen:param>JAVADOC_AUTOBRIEF=YES
|
||||||
|
<doxygen:param>AUTOLINK_SUPPORT=NO
|
||||||
|
<doxygen:param>EXTRACT_ALL=YES
|
||||||
|
<doxygen:param>EXTRACT_PRIVATE=YES
|
||||||
|
<doxygen:param>EXTRACT_LOCAL_CLASSES=NO
|
||||||
|
<doxygen:param>SHOW_INCLUDE_FILES=NO
|
||||||
|
<doxygen:param>INLINE_INFO=NO
|
||||||
|
<doxygen:param>SORT_MEMBER_DOCS=NO
|
||||||
|
<doxygen:param>SORT_MEMBERS_CTORS_1ST=YES
|
||||||
|
<doxygen:param>SHOW_USED_FILES=NO
|
||||||
|
<doxygen:param>SHOW_FILES=NO
|
||||||
|
<doxygen:param>SHOW_NAMESPACES=NO
|
||||||
|
<doxygen:param>CLASS_DIAGRAMS=NO
|
||||||
|
|
||||||
|
# <doxygen:param>ALLOW_UNICODE_NAMES=NO
|
||||||
|
# <doxygen:param>GROUP_NESTED_COMPOUNDS=NO
|
||||||
|
# <doxygen:param>HIDE_COMPOUND_REFERENCE=NO
|
||||||
|
# <doxygen:param>WARN_AS_ERROR=NO
|
||||||
;
|
;
|
||||||
|
|
||||||
rule make_doxygen_xml ( targets * : sources * : properties * )
|
|
||||||
{
|
|
||||||
LIB_DIR on $(targets) =
|
|
||||||
[ path.native [ path.parent [ path.root
|
|
||||||
[ on $(sources[1]) return $(SEARCH) ] [ path.pwd ] ] ] ] ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ os.name ] = NT
|
|
||||||
{
|
|
||||||
actions make_doxygen_xml
|
|
||||||
{
|
|
||||||
SET LIB_DIR=$(LIB_DIR)
|
|
||||||
SET XML_OUTPUT=$(1:D)
|
|
||||||
"$(.doxygen)" $(2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
actions make_doxygen_xml
|
|
||||||
{
|
|
||||||
export LIB_DIR=$(LIB_DIR)
|
|
||||||
export XML_OUTPUT=$(1:D)
|
|
||||||
"$(.doxygen)" $(2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copy all the XSLT modules to the target directory.
|
|
||||||
#
|
|
||||||
# FIXME: Change this so we can just specify a directory,
|
|
||||||
# rather than every file individually.
|
|
||||||
#
|
|
||||||
# Also, somehow force dependencies in a general way
|
|
||||||
# such that the XSLT has to be executed again
|
|
||||||
# if any of the modules change. For example,
|
|
||||||
# if base-extract-xml-pages.xml changes, then
|
|
||||||
# an invocation of extract-xml-pages.xsl (which
|
|
||||||
# imports the former) must be run again.
|
|
||||||
#
|
|
||||||
path-constant docca : ../../../tools/docca ;
|
|
||||||
make extract-xml-pages.xsl : $(docca)/include/docca/extract-xml-pages.xsl : @copy_script ;
|
|
||||||
make base-extract-xml-pages.xsl : $(docca)/include/docca/base-extract-xml-pages.xsl : @copy_script ;
|
|
||||||
make common.xsl : $(docca)/include/docca/common.xsl : @copy_script ;
|
|
||||||
make stage1.xsl : $(docca)/include/docca/stage1.xsl : @copy_script ;
|
|
||||||
make base-stage1.xsl : $(docca)/include/docca/base-stage1.xsl : @copy_script ;
|
|
||||||
make stage2.xsl : $(docca)/include/docca/stage2.xsl : @copy_script ;
|
|
||||||
make assemble-quickbook.xsl : $(docca)/include/docca/assemble-quickbook.xsl : @copy_script ;
|
|
||||||
make emphasized-types.xsl : $(docca)/include/docca/emphasized-types.xsl : @copy_script ;
|
|
||||||
|
|
||||||
make config.xsl
|
|
||||||
:
|
|
||||||
$(docca)/include/docca/config.xsl
|
|
||||||
xsl/config.xsl
|
|
||||||
xsl/class_detail.xsl
|
|
||||||
xsl/includes.xsl
|
|
||||||
:
|
|
||||||
@make_config
|
|
||||||
;
|
|
||||||
|
|
||||||
actions make_config
|
|
||||||
{
|
|
||||||
cp $(2[1]) $(1)
|
|
||||||
sed -i -e "/<!-- CONFIG_TEMPLATE -->/{r $(2[2])" -e "d}" $(1)
|
|
||||||
sed -i -e "/<!-- CLASS_DETAIL_TEMPLATE -->/{r $(2[3])" -e "d}" $(1)
|
|
||||||
sed -i -e "/<!-- INCLUDES_TEMPLATE -->/{r $(2[4])" -e "d}" $(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
# Make a copy of the given file.
|
|
||||||
#
|
|
||||||
actions copy_script
|
|
||||||
{
|
|
||||||
cp $(2[1]) $(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# This is to initially create the directory as a side effect; I'm sure there's a better way...
|
|
||||||
make xml-pages/directory/placeholder : index.xml : @null_action ;
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Run index.xml through the first transformation stage
|
|
||||||
# (assembling and splitting the XML into page-specific files).
|
|
||||||
#
|
|
||||||
make xml-pages.xml
|
|
||||||
:
|
|
||||||
index.xml
|
|
||||||
extract-xml-pages.xsl
|
|
||||||
|
|
||||||
# Make bjam aware of additional dependencies
|
|
||||||
base-extract-xml-pages.xsl
|
|
||||||
config.xsl
|
|
||||||
common.xsl
|
|
||||||
:
|
|
||||||
saxonhe.saxonhe
|
|
||||||
;
|
|
||||||
|
|
||||||
# This is just to make the directory eligible as a source
|
|
||||||
make xml-pages : index.xml : @null_action ;
|
|
||||||
|
|
||||||
# Not ready for prime time until I figure out how to get the xslt-visualizer code in place
|
|
||||||
#make stage1/code-trace-enabled/stage1.xsl
|
|
||||||
# :
|
|
||||||
# stage1.xsl
|
|
||||||
# xslt-visualizer/xsl/trace-enable.xsl
|
|
||||||
# :
|
|
||||||
# saxonhe.saxonhe
|
|
||||||
# ;
|
|
||||||
|
|
||||||
# This is to initially create the directory as a side effect; I'm sure there's a better way...
|
|
||||||
make stage1/results/directory/placeholder : xml-pages.xml : @null_action ;
|
|
||||||
make stage2/results/directory/placeholder : xml-pages.xml : @null_action ;
|
|
||||||
|
|
||||||
# TODO: figure out why this (and the following stage) get built every time
|
|
||||||
make stage1/results
|
|
||||||
:
|
|
||||||
xml-pages
|
|
||||||
stage1.xsl
|
|
||||||
|
|
||||||
# additional dependencies
|
|
||||||
xml-pages.xml
|
|
||||||
base-stage1.xsl
|
|
||||||
config.xsl
|
|
||||||
common.xsl
|
|
||||||
:
|
|
||||||
saxonhe.saxonhe_dir
|
|
||||||
;
|
|
||||||
|
|
||||||
make stage2/results
|
|
||||||
:
|
|
||||||
stage1/results
|
|
||||||
stage2.xsl
|
|
||||||
|
|
||||||
# additional dependencies
|
|
||||||
emphasized-types.xsl
|
|
||||||
:
|
|
||||||
saxonhe.saxonhe_dir
|
|
||||||
;
|
|
||||||
|
|
||||||
make reference.qbk
|
|
||||||
:
|
|
||||||
xml-pages.xml
|
|
||||||
assemble-quickbook.xsl
|
|
||||||
|
|
||||||
# TODO: make this input to the XSLT somehow
|
|
||||||
# rather than relying on it being hard-coded
|
|
||||||
# in the XSLT (which it is!)
|
|
||||||
stage2/results
|
|
||||||
:
|
|
||||||
saxonhe.saxonhe
|
|
||||||
;
|
|
||||||
|
|
||||||
actions make_dir
|
|
||||||
{
|
|
||||||
mkdir $(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
make combine.xslt : index.xml : @null_action ;
|
|
||||||
|
|
||||||
actions touch_file
|
|
||||||
{
|
|
||||||
touch $(1) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
actions null_action
|
|
||||||
{
|
|
||||||
touch -c $(1) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
make reference.xml
|
|
||||||
:
|
|
||||||
combine.xslt
|
|
||||||
index.xml
|
|
||||||
:
|
|
||||||
@call-xsltproc
|
|
||||||
;
|
|
||||||
|
|
||||||
actions call-xsltproc
|
|
||||||
{
|
|
||||||
"$(.xsltproc)" $(2) > $(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Produce the reference.qbk file by running
|
|
||||||
# the reference xml through the transform.
|
|
||||||
#
|
|
||||||
#make reference.qbk
|
|
||||||
# :
|
|
||||||
# reference.xml
|
|
||||||
# transform.xsl
|
|
||||||
# :
|
|
||||||
# saxonhe.saxonhe
|
|
||||||
# ;
|
|
||||||
|
|
||||||
# We have to make a copy of reference.qbk and put it
|
|
||||||
# in a place where the static .qbk files can find it
|
|
||||||
#
|
|
||||||
install qbk : reference.qbk ;
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Produce the Boost.Book XML from the QuickBook
|
# Produce the Boost.Book XML from the QuickBook
|
||||||
@@ -272,7 +71,7 @@ xml static_string_doc
|
|||||||
qbk/main.qbk
|
qbk/main.qbk
|
||||||
:
|
:
|
||||||
<dependency>images
|
<dependency>images
|
||||||
<dependency>qbk
|
<dependency>reference.qbk
|
||||||
;
|
;
|
||||||
|
|
||||||
explicit static_string_doc ;
|
explicit static_string_doc ;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
[template include_file[path][^<'''<ulink url="../../../../'''[path]'''">'''[path]'''</ulink>'''>]]
|
[template include_file[path][^<'''<ulink url="../../../../'''[path]'''">'''[path]'''</ulink>'''>]]
|
||||||
|
|
||||||
[def __InputIterator__ [@https://en.cppreference.com/w/cpp/named_req/InputIterator ['InputIterator]]]
|
[def __InputIterator__ [@https://en.cppreference.com/w/cpp/named_req/InputIterator ['InputIterator]]]
|
||||||
|
[def __UnaryPredicate__ [@https://en.cppreference.com/w/cpp/named_req/Predicate ['Predicate]]]
|
||||||
|
|
||||||
[/-----------------------------------------------------------------------------]
|
[/-----------------------------------------------------------------------------]
|
||||||
|
|
||||||
|
|||||||
-252
@@ -1,252 +0,0 @@
|
|||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the input files
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
INPUT = \
|
|
||||||
$(LIB_DIR)/include/boost/static_string
|
|
||||||
|
|
||||||
ALIASES += esafe="@par Exception Safety"
|
|
||||||
|
|
||||||
INPUT_ENCODING = UTF-8
|
|
||||||
FILE_PATTERNS =
|
|
||||||
RECURSIVE = NO
|
|
||||||
EXCLUDE =
|
|
||||||
EXCLUDE_SYMLINKS = NO
|
|
||||||
EXCLUDE_PATTERNS =
|
|
||||||
EXCLUDE_SYMBOLS =
|
|
||||||
EXAMPLE_PATH =
|
|
||||||
EXAMPLE_PATTERNS =
|
|
||||||
EXAMPLE_RECURSIVE = NO
|
|
||||||
IMAGE_PATH =
|
|
||||||
INPUT_FILTER =
|
|
||||||
FILTER_PATTERNS =
|
|
||||||
FILTER_SOURCE_FILES = NO
|
|
||||||
FILTER_SOURCE_PATTERNS =
|
|
||||||
USE_MDFILE_AS_MAINPAGE =
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the preprocessor
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ENABLE_PREPROCESSING = YES
|
|
||||||
MACRO_EXPANSION = YES
|
|
||||||
EXPAND_ONLY_PREDEF = YES
|
|
||||||
SEARCH_INCLUDES = YES
|
|
||||||
INCLUDE_PATH = ../
|
|
||||||
INCLUDE_FILE_PATTERNS =
|
|
||||||
|
|
||||||
PREDEFINED = \
|
|
||||||
BOOST_STATIC_STRING_DOCS \
|
|
||||||
"BOOST_STATIC_STRING_CPP11_CONSTEXPR=constexpr" \
|
|
||||||
"BOOST_STATIC_STRING_CPP14_CONSTEXPR=constexpr" \
|
|
||||||
"BOOST_STATIC_STRING_CPP17_CONSTEXPR=constexpr" \
|
|
||||||
"BOOST_STATIC_STRING_CPP20_CONSTEXPR=constexpr"
|
|
||||||
|
|
||||||
EXPAND_AS_DEFINED =
|
|
||||||
SKIP_FUNCTION_MACROS = YES
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Project related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
DOXYFILE_ENCODING = UTF-8
|
|
||||||
PROJECT_NAME = "StaticString"
|
|
||||||
PROJECT_NUMBER =
|
|
||||||
PROJECT_BRIEF = String Library
|
|
||||||
PROJECT_LOGO =
|
|
||||||
OUTPUT_DIRECTORY =
|
|
||||||
CREATE_SUBDIRS = NO
|
|
||||||
#####ALLOW_UNICODE_NAMES = NO
|
|
||||||
OUTPUT_LANGUAGE = English
|
|
||||||
BRIEF_MEMBER_DESC = YES
|
|
||||||
REPEAT_BRIEF = YES
|
|
||||||
ABBREVIATE_BRIEF =
|
|
||||||
ALWAYS_DETAILED_SEC = NO
|
|
||||||
INLINE_INHERITED_MEMB = YES
|
|
||||||
FULL_PATH_NAMES = YES
|
|
||||||
#STRIP_FROM_PATH = $(LIB_DIR)/include # Requires doxygen 1.8.7+
|
|
||||||
STRIP_FROM_INC_PATH =
|
|
||||||
SHORT_NAMES = NO
|
|
||||||
JAVADOC_AUTOBRIEF = YES
|
|
||||||
QT_AUTOBRIEF = NO
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
|
||||||
INHERIT_DOCS = YES
|
|
||||||
SEPARATE_MEMBER_PAGES = NO
|
|
||||||
TAB_SIZE = 4
|
|
||||||
TCL_SUBST =
|
|
||||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
|
||||||
OPTIMIZE_OUTPUT_JAVA = NO
|
|
||||||
OPTIMIZE_FOR_FORTRAN = NO
|
|
||||||
OPTIMIZE_OUTPUT_VHDL = NO
|
|
||||||
EXTENSION_MAPPING =
|
|
||||||
MARKDOWN_SUPPORT = YES
|
|
||||||
AUTOLINK_SUPPORT = YES
|
|
||||||
BUILTIN_STL_SUPPORT = NO
|
|
||||||
CPP_CLI_SUPPORT = NO
|
|
||||||
SIP_SUPPORT = NO
|
|
||||||
IDL_PROPERTY_SUPPORT = YES
|
|
||||||
DISTRIBUTE_GROUP_DOC = YES
|
|
||||||
#####GROUP_NESTED_COMPOUNDS = NO
|
|
||||||
SUBGROUPING = YES
|
|
||||||
INLINE_GROUPED_CLASSES = NO
|
|
||||||
INLINE_SIMPLE_STRUCTS = NO
|
|
||||||
TYPEDEF_HIDES_STRUCT = NO
|
|
||||||
LOOKUP_CACHE_SIZE = 0
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Build related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
EXTRACT_ALL = YES
|
|
||||||
EXTRACT_PRIVATE = YES
|
|
||||||
EXTRACT_PACKAGE = NO
|
|
||||||
EXTRACT_STATIC = NO
|
|
||||||
EXTRACT_LOCAL_CLASSES = NO
|
|
||||||
EXTRACT_LOCAL_METHODS = NO
|
|
||||||
EXTRACT_ANON_NSPACES = NO
|
|
||||||
HIDE_UNDOC_MEMBERS = NO
|
|
||||||
HIDE_UNDOC_CLASSES = NO
|
|
||||||
HIDE_FRIEND_COMPOUNDS = NO
|
|
||||||
HIDE_IN_BODY_DOCS = NO
|
|
||||||
INTERNAL_DOCS = NO
|
|
||||||
CASE_SENSE_NAMES = YES
|
|
||||||
HIDE_SCOPE_NAMES = NO
|
|
||||||
#####HIDE_COMPOUND_REFERENCE= NO
|
|
||||||
SHOW_INCLUDE_FILES = NO
|
|
||||||
SHOW_GROUPED_MEMB_INC = NO
|
|
||||||
FORCE_LOCAL_INCLUDES = NO
|
|
||||||
INLINE_INFO = NO
|
|
||||||
SORT_MEMBER_DOCS = NO
|
|
||||||
SORT_BRIEF_DOCS = NO
|
|
||||||
SORT_MEMBERS_CTORS_1ST = YES
|
|
||||||
SORT_GROUP_NAMES = NO
|
|
||||||
SORT_BY_SCOPE_NAME = NO
|
|
||||||
STRICT_PROTO_MATCHING = NO
|
|
||||||
GENERATE_TODOLIST = NO
|
|
||||||
GENERATE_TESTLIST = NO
|
|
||||||
GENERATE_BUGLIST = NO
|
|
||||||
GENERATE_DEPRECATEDLIST= NO
|
|
||||||
ENABLED_SECTIONS =
|
|
||||||
MAX_INITIALIZER_LINES = 30
|
|
||||||
SHOW_USED_FILES = NO
|
|
||||||
SHOW_FILES = NO
|
|
||||||
SHOW_NAMESPACES = NO
|
|
||||||
FILE_VERSION_FILTER =
|
|
||||||
LAYOUT_FILE =
|
|
||||||
CITE_BIB_FILES =
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to warning and progress messages
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
QUIET = NO
|
|
||||||
WARNINGS = YES
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
|
||||||
WARN_IF_DOC_ERROR = YES
|
|
||||||
WARN_NO_PARAMDOC = NO
|
|
||||||
#####WARN_AS_ERROR = NO
|
|
||||||
WARN_FORMAT = "$file:$line: $text"
|
|
||||||
WARN_LOGFILE =
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to source browsing
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SOURCE_BROWSER = NO
|
|
||||||
INLINE_SOURCES = NO
|
|
||||||
STRIP_CODE_COMMENTS = YES
|
|
||||||
REFERENCED_BY_RELATION = NO
|
|
||||||
REFERENCES_RELATION = NO
|
|
||||||
REFERENCES_LINK_SOURCE = YES
|
|
||||||
SOURCE_TOOLTIPS = YES
|
|
||||||
USE_HTAGS = NO
|
|
||||||
VERBATIM_HEADERS = YES
|
|
||||||
CLANG_ASSISTED_PARSING = NO
|
|
||||||
CLANG_OPTIONS =
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the alphabetical class index
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ALPHABETICAL_INDEX = YES
|
|
||||||
COLS_IN_ALPHA_INDEX = 5
|
|
||||||
IGNORE_PREFIX =
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the HTML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_HTML = NO
|
|
||||||
HTML_OUTPUT = dhtm
|
|
||||||
HTML_FILE_EXTENSION = .html
|
|
||||||
HTML_HEADER =
|
|
||||||
HTML_FOOTER =
|
|
||||||
HTML_STYLESHEET =
|
|
||||||
HTML_EXTRA_STYLESHEET =
|
|
||||||
HTML_EXTRA_FILES =
|
|
||||||
HTML_COLORSTYLE_HUE = 220
|
|
||||||
HTML_COLORSTYLE_SAT = 100
|
|
||||||
HTML_COLORSTYLE_GAMMA = 80
|
|
||||||
HTML_TIMESTAMP = NO
|
|
||||||
HTML_DYNAMIC_SECTIONS = NO
|
|
||||||
HTML_INDEX_NUM_ENTRIES = 100
|
|
||||||
GENERATE_DOCSET = NO
|
|
||||||
DOCSET_FEEDNAME = "Doxygen generated docs"
|
|
||||||
DOCSET_BUNDLE_ID = org.doxygen.Project
|
|
||||||
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
|
|
||||||
DOCSET_PUBLISHER_NAME = Publisher
|
|
||||||
GENERATE_HTMLHELP = NO
|
|
||||||
CHM_FILE =
|
|
||||||
HHC_LOCATION =
|
|
||||||
GENERATE_CHI = NO
|
|
||||||
CHM_INDEX_ENCODING =
|
|
||||||
BINARY_TOC = NO
|
|
||||||
TOC_EXPAND = NO
|
|
||||||
GENERATE_QHP = NO
|
|
||||||
QCH_FILE =
|
|
||||||
QHP_NAMESPACE = org.doxygen.Project
|
|
||||||
QHP_VIRTUAL_FOLDER = doc
|
|
||||||
QHP_CUST_FILTER_NAME =
|
|
||||||
QHP_CUST_FILTER_ATTRS =
|
|
||||||
QHP_SECT_FILTER_ATTRS =
|
|
||||||
QHG_LOCATION =
|
|
||||||
GENERATE_ECLIPSEHELP = NO
|
|
||||||
ECLIPSE_DOC_ID = org.doxygen.Project
|
|
||||||
DISABLE_INDEX = NO
|
|
||||||
GENERATE_TREEVIEW = NO
|
|
||||||
ENUM_VALUES_PER_LINE = 4
|
|
||||||
TREEVIEW_WIDTH = 250
|
|
||||||
EXT_LINKS_IN_WINDOW = NO
|
|
||||||
FORMULA_FONTSIZE = 10
|
|
||||||
FORMULA_TRANSPARENT = YES
|
|
||||||
USE_MATHJAX = NO
|
|
||||||
MATHJAX_FORMAT = HTML-CSS
|
|
||||||
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
|
|
||||||
MATHJAX_EXTENSIONS =
|
|
||||||
MATHJAX_CODEFILE =
|
|
||||||
SEARCHENGINE = YES
|
|
||||||
SERVER_BASED_SEARCH = NO
|
|
||||||
EXTERNAL_SEARCH = NO
|
|
||||||
SEARCHENGINE_URL =
|
|
||||||
SEARCHDATA_FILE = searchdata.xml
|
|
||||||
EXTERNAL_SEARCH_ID =
|
|
||||||
EXTRA_SEARCH_MAPPINGS =
|
|
||||||
|
|
||||||
GENERATE_LATEX = NO
|
|
||||||
GENERATE_RTF = NO
|
|
||||||
GENERATE_MAN = NO
|
|
||||||
GENERATE_DOCBOOK = NO
|
|
||||||
GENERATE_AUTOGEN_DEF = NO
|
|
||||||
GENERATE_PERLMOD = NO
|
|
||||||
CLASS_DIAGRAMS = NO
|
|
||||||
HAVE_DOT = NO
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the XML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_XML = YES
|
|
||||||
XML_OUTPUT = $(XML_OUTPUT)
|
|
||||||
XML_PROGRAMLISTING = YES
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to external references
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
TAGFILES =
|
|
||||||
GENERATE_TAGFILE =
|
|
||||||
ALLEXTERNALS = NO
|
|
||||||
EXTERNAL_GROUPS = YES
|
|
||||||
EXTERNAL_PAGES = YES
|
|
||||||
PERL_PATH = /usr/bin/perl
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<!-- CLASS_DETAIL_TEMPLATE BEGIN -->
|
|
||||||
<xsl:when test="$normal-tparam = 'InputIterator'"><xsl:text>__InputIterator__</xsl:text></xsl:when>
|
|
||||||
<!-- CLASS_DETAIL_TEMPLATE END -->
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
<!-- Variables (Edit for your project) -->
|
|
||||||
<xsl:variable name="doc-ref" select="'static_string.ref'"/>
|
|
||||||
<xsl:variable name="doc-ns" select="'boost::static_strings'"/>
|
|
||||||
<xsl:variable name="debug" select="0"/>
|
|
||||||
<xsl:variable name="private" select="0"/>
|
|
||||||
<!-- End Variables -->
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<xsl:stylesheet version="3.0"
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||||
|
exclude-result-prefixes="xs"
|
||||||
|
expand-text="yes">
|
||||||
|
|
||||||
|
<xsl:variable name="doc-ref" select="'static_string.ref'"/>
|
||||||
|
<xsl:variable name="doc-ns" select="'boost::static_strings'"/>
|
||||||
|
<xsl:variable name="include-private-members" select="false()"/>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<!-- INCLUDES_TEMPLATE BEGIN -->
|
|
||||||
<xsl:text>Defined in header [include_file </xsl:text>
|
|
||||||
<xsl:value-of select="substring-after($file,'include/')"/>
|
|
||||||
<xsl:text>]

</xsl:text>
|
|
||||||
<!-- INCLUDES_TEMPLATE END -->
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<!-- INCLUDES_FOOT_TEMPLATE BEGIN -->
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="contains($file, 'supercalifragilisticexpialidocious')">
|
|
||||||
<xsl:text>

Easter Egg
</xsl:text>
|
|
||||||
</xsl:when>
|
|
||||||
</xsl:choose>
|
|
||||||
<!-- INCLUDES_FOOT_TEMPLATE END -->
|
|
||||||
@@ -5614,6 +5614,31 @@ operator+(
|
|||||||
std::size_t(0), +lhs);
|
std::size_t(0), +lhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// erase_if
|
||||||
|
//
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
template<
|
||||||
|
std::size_t N, typename CharT,
|
||||||
|
typename Traits, typename UnaryPredicate>
|
||||||
|
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
||||||
|
typename
|
||||||
|
basic_static_string<N, CharT, Traits>::size_type
|
||||||
|
erase_if(
|
||||||
|
basic_static_string<N, CharT, Traits>& str,
|
||||||
|
UnaryPredicate pred)
|
||||||
|
{
|
||||||
|
auto first = str.begin();
|
||||||
|
for (auto it = first; it != str.end(); ++it)
|
||||||
|
if (!pred(*it))
|
||||||
|
*first++ = std::move(*it);
|
||||||
|
const auto count = str.end() - first;
|
||||||
|
str.erase(first, str.end());
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// swap
|
// swap
|
||||||
@@ -5845,7 +5870,7 @@ to_static_wstring(long double value) noexcept
|
|||||||
|
|
||||||
#ifdef BOOST_STATIC_STRING_USE_DEDUCT
|
#ifdef BOOST_STATIC_STRING_USE_DEDUCT
|
||||||
template<std::size_t N, typename CharT>
|
template<std::size_t N, typename CharT>
|
||||||
basic_static_string(CharT(&)[N]) ->
|
basic_static_string(const CharT(&)[N]) ->
|
||||||
basic_static_string<N, CharT, std::char_traits<CharT>>;
|
basic_static_string<N, CharT, std::char_traits<CharT>>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -11,6 +11,8 @@
|
|||||||
"String"
|
"String"
|
||||||
],
|
],
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
"Krystian Stasiowski <sdkrystian@gmail.com>"
|
"Krystian Stasiowski <sdkrystian@gmail.com>",
|
||||||
]
|
"Vinnie Falco <vinnie.falco@gmail.com>"
|
||||||
|
],
|
||||||
|
"cxxstd": "11"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cwchar>
|
#include <cwchar>
|
||||||
|
#include <cctype>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@@ -1848,6 +1849,51 @@ testErase()
|
|||||||
BOOST_TEST(testE(S("abcdefghijklmnopqrst"), 21, 0, S("can't happen")));
|
BOOST_TEST(testE(S("abcdefghijklmnopqrst"), 21, 0, S("can't happen")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// done
|
||||||
|
static
|
||||||
|
void
|
||||||
|
testEraseIf()
|
||||||
|
{
|
||||||
|
// erase_if(static_string& str, UnaryPredicate pred)
|
||||||
|
|
||||||
|
{
|
||||||
|
static_string<3> s{""};
|
||||||
|
BOOST_TEST(erase_if(s, [](char c) { return c == 'a'; }) == 0);
|
||||||
|
BOOST_TEST(s == "");
|
||||||
|
BOOST_TEST(*s.end() == 0);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
static_string<3> s{"aaa"};
|
||||||
|
BOOST_TEST(erase_if(s, [](char c) { return c == 'a'; }) == 3);
|
||||||
|
BOOST_TEST(s == "");
|
||||||
|
BOOST_TEST(*s.end() == 0);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
static_string<3> s{"abc"};
|
||||||
|
BOOST_TEST(erase_if(s, [](char c) { return c == 'a'; }) == 1);
|
||||||
|
BOOST_TEST(s == "bc");
|
||||||
|
BOOST_TEST(*s.end() == 0);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
static_string<3> s{"abc"};
|
||||||
|
BOOST_TEST(erase_if(s, [](char c) { return c == 'b'; }) == 1);
|
||||||
|
BOOST_TEST(s == "ac");
|
||||||
|
BOOST_TEST(*s.end() == 0);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
static_string<3> s{"abc"};
|
||||||
|
BOOST_TEST(erase_if(s, [](char c) { return c == 'c'; }) == 1);
|
||||||
|
BOOST_TEST(s == "ab");
|
||||||
|
BOOST_TEST(*s.end() == 0);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
static_string<3> s{"abc"};
|
||||||
|
BOOST_TEST(erase_if(s, [](char c) { return c == 'd'; }) == 0);
|
||||||
|
BOOST_TEST(s == "abc");
|
||||||
|
BOOST_TEST(*s.end() == 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// done
|
// done
|
||||||
static
|
static
|
||||||
void
|
void
|
||||||
@@ -7171,6 +7217,7 @@ runTests()
|
|||||||
testClear();
|
testClear();
|
||||||
testInsert();
|
testInsert();
|
||||||
testErase();
|
testErase();
|
||||||
|
testEraseIf();
|
||||||
testPushBack();
|
testPushBack();
|
||||||
testPopBack();
|
testPopBack();
|
||||||
testAppend();
|
testAppend();
|
||||||
|
|||||||
Reference in New Issue
Block a user