├── .arclibs └── cppcheck │ ├── .phutil_module_cache │ ├── __phutil_library_init__.php │ └── __phutil_library_map__.php ├── pawlib.kdev4 ├── docs ├── source │ ├── pawlib_weblogo.png │ ├── _themes │ │ └── sphinx_rtd_theme │ │ │ ├── static │ │ │ ├── fonts │ │ │ │ ├── Lato-Bold.ttf │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── Lato-Regular.ttf │ │ │ │ ├── Inconsolata-Bold.ttf │ │ │ │ ├── RobotoSlab-Bold.ttf │ │ │ │ ├── Inconsolata-Regular.ttf │ │ │ │ ├── RobotoSlab-Regular.ttf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ ├── css │ │ │ │ ├── badge_only.css.map │ │ │ │ └── badge_only.css │ │ │ └── js │ │ │ │ └── theme.js │ │ │ ├── theme.conf │ │ │ ├── __init__.py │ │ │ ├── searchbox.html │ │ │ ├── versions.html │ │ │ ├── search.html │ │ │ ├── footer.html │ │ │ ├── breadcrumbs.html │ │ │ ├── layout.html │ │ │ └── layout_old.html │ ├── index.rst │ ├── general │ │ ├── console.rst │ │ ├── tests.rst │ │ ├── support.rst │ │ └── setup.rst │ └── core │ │ ├── trilean.rst │ │ └── stdutils.rst └── make.bat ├── default.config ├── .arcconfig ├── .kdev4 └── pawlib.kdev4 ├── .arclint ├── .astylerc ├── .gitignore ├── pawlib-source ├── src │ ├── flex_queue_tests.cpp │ ├── flex_bit_tests.cpp │ ├── flex_stack_tests.cpp │ ├── core_types_tests.cpp │ ├── pool_tests.cpp │ ├── flex_array_tests.cpp │ ├── onechar_tests.cpp │ ├── onechar.cpp │ └── core_types.cpp ├── include │ └── pawlib │ │ ├── constants.hpp │ │ ├── iterator │ │ └── base_iterator.hpp │ │ ├── rigid_stack.hpp │ │ ├── goldilocks_shell.hpp │ │ ├── flex_map.hpp │ │ ├── flex_stack.hpp │ │ ├── flex_queue.hpp │ │ ├── core_types.hpp │ │ └── singly_linked_list.hpp ├── Makefile └── pawlib.cbp ├── .vscode ├── launch.json ├── tasks.json ├── c_cpp_properties.json └── settings.json ├── LICENSE.md ├── CHANGELOG.md ├── README.md ├── pawlib-tester ├── pawlib-tester.cbp ├── main.cpp ├── Makefile └── CMakeLists.txt ├── BUILDING.md ├── .clang-format └── Makefile /.arclibs/cppcheck/.phutil_module_cache: -------------------------------------------------------------------------------- 1 | {"__symbol_cache_version__":11} -------------------------------------------------------------------------------- /pawlib.kdev4: -------------------------------------------------------------------------------- 1 | [Project] 2 | CreatedFrom=Makefile 3 | Manager=KDevCustomMakeManager 4 | Name=pawlib 5 | -------------------------------------------------------------------------------- /.arclibs/cppcheck/__phutil_library_init__.php: -------------------------------------------------------------------------------- 1 | 2, 11 | 'class' => array(), 12 | 'function' => array(), 13 | 'xmap' => array(), 14 | )); 15 | -------------------------------------------------------------------------------- /.arclint: -------------------------------------------------------------------------------- 1 | { 2 | "linters": { 3 | "clang-format": { 4 | "type": "clang-format", 5 | "include": "(\\.(hpp|cpp)$)" 6 | }, 7 | "cpp": { 8 | "type": "cppcheck", 9 | "include": "(\\.cpp$)" 10 | }, 11 | "hpp": { 12 | "type": "cppcheck", 13 | "include": "(\\.hpp$)" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.astylerc: -------------------------------------------------------------------------------- 1 | style=allman 2 | indent=space=4 3 | attach-closing-while 4 | indent-classes 5 | indent-switches 6 | indent-cases 7 | indent-namespaces 8 | pad-oper 9 | pad-header 10 | align-pointer=type 11 | align-reference=type 12 | break-one-line-headers 13 | add-braces 14 | attach-return-type 15 | keep-one-line-blocks 16 | keep-one-line-statements 17 | convert-tabs 18 | max-code-length=80 19 | break-after-logical=80 20 | -------------------------------------------------------------------------------- /docs/source/_themes/sphinx_rtd_theme/__init__.py: -------------------------------------------------------------------------------- 1 | """Sphinx ReadTheDocs theme. 2 | 3 | From https://github.com/ryan-roemer/sphinx-bootstrap-theme. 4 | 5 | """ 6 | import os 7 | 8 | __version__ = '0.2.5b1' 9 | __version_full__ = __version__ 10 | 11 | 12 | def get_html_theme_path(): 13 | """Return list of HTML theme paths.""" 14 | cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 15 | return cur_dir 16 | -------------------------------------------------------------------------------- /docs/source/_themes/sphinx_rtd_theme/searchbox.html: -------------------------------------------------------------------------------- 1 | {%- if builder != 'singlehtml' %} 2 |
{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}
36 | {% endif %} 37 | {% endif %} 38 |{{ context|e }}
45 |asdf asdf asdf asdf 22
202 | {%- endblock %} 203 | 204 | 205 | 206 | -------------------------------------------------------------------------------- /docs/source/core/stdutils.rst: -------------------------------------------------------------------------------- 1 | Standard Utilities 2 | ################################### 3 | 4 | These are common utility functions which are used by many other classes 5 | in PawLIB. 6 | 7 | Not all of the functions are documented below, only those we believe will 8 | be useful to PawLIB users. 9 | 10 | Including Standard Utilities 11 | ================================= 12 | 13 | To include Standard Utilities, use the following: 14 | 15 | .. code-block:: c++ 16 | 17 | #include "pawlib/stdutils.hpp" 18 | 19 | Integer to std::string [``itos()``] 20 | ================================================== 21 | 22 | We can convert any integer data type, signed or unsigned, to a std::string 23 | using ``itos()``. 24 | 25 | ``itos()`` converts the integer to a std::string. It accepts three arguments, 26 | two of which are required: 27 | 28 | * the integer to convert, 29 | 30 | * the base you're working in, represented as an integer (default=10), 31 | 32 | * whether to represent digits greater than 9 as uppercase (default=false) 33 | 34 | .. code-block:: c++ 35 | 36 | // The integer to convert. 37 | int foo = -16753; 38 | 39 | /* Convert the float to a std::string. We're passing all the arguments, 40 | * even though only the first two are required, for the sake of example. 41 | */ 42 | std::string foo_s = stdutils::itos(foo, 10, false); 43 | 44 | // Print out the std::string. 45 | ioc << foo_s << IOCtrl::endl; 46 | 47 | // OUTPUT: -16753 48 | 49 | .. IMPORTANT:: Enumerations are not implicitly cast to ints with this function. 50 | Therefore, you must ``static_cast