Jessica James
3a9d8ee278
Adjust jessibot for object::string_type change
3 years ago
Jessica James
901b529010
Went slightly overboard with app_parameters
3 years ago
Jessica James
ac78b7ffb8
Move potentially useful vectorize_ntargs from app_parameters.cpp to .hpp; general cleanup
3 years ago
Jessica James
f57fde422b
Replace ntmbs_to_u8string with mbstring_to_ustring; add ustring_to_mbstring for completeness
3 years ago
Jessica James
bf2bcd55e2
use case-insensitive containers for app_parameters
3 years ago
Jessica James
1ad9b02fff
Add wchar_t and envp support, as well as utf8 conversion, to app_parameters
3 years ago
Jessica James
b80b353b3b
Use generic escape sequence parser for json
3 years ago
Jessica James
bd5de3fd38
Fix test compilation on GCC caused by missing static_cast
3 years ago
Jessica James
edf5b45223
Simplify & fix low control character handling in make_json_string
3 years ago
Jessica James
3bb40fe082
Rename to decode_result
3 years ago
Jessica James
f425b13797
change object to use u8string instead of string
3 years ago
Jessica James
ea14492235
Improve some of the is_<container> helpers
3 years ago
Jessica James
e3142da329
Initial implementation for syntax_tree, with deserialize_html_form as a prototype; add container::push; split query_string stuff to http_query.hpp
3 years ago
Jessica James
a232d33d8a
Split core unicode methods off to unicode_base; made same methods constexpr except for fold & allocating encode; apply_cpp_escape_sequences & deserialize_http_query now constexpr
3 years ago
Jessica James
a8cc0237f8
add deserialize_http_query
3 years ago
Jessica James
8d3efe0835
Add text_hash, text_hashi, text_equal, and text_equals structs to help with unordered_maps, partiuclarly case-insensitive lookups
3 years ago
Jessica James
bce3bfefc6
Add join(), refactored sequence parser to use sorted constexpr array instead of std::map
3 years ago
Jessica James
d7e4f337c7
Add 'apply_cpp_escape_sequences', general cleanup
3 years ago
Jessica James
645d010502
Fix test compilation
3 years ago
Jessica James
25198a3c77
Fix missing headers breaking compilation on GCC-10; minor improvements to app_parameters
3 years ago
Jessica James
f714a1da00
Add find, findi
3 years ago
Jessica James
9d5d8b0abb
Fix endless loop; need to be more thorough with unit tests...
3 years ago
Jessica James
8e59b16eb2
Add various string helpers to unicode.hpp & appropriate tests; fix a bug with word_split
3 years ago
Jessica James
b85fa62861
Genericize object:: type names; add operator[] for array_type
3 years ago
Jessica James
467e2b8853
Export symbols when building shared library; minor misc fixes
3 years ago
Jessica James
f00e36bce2
Default to vector instead of basic_string for non-trivial types
3 years ago
Jessica James
d7b1972aa1
it's vectors all the way down
3 years ago
Jessica James
157a3cac03
Add word_split, word_split_once, and word_split_n_once, taking in whitespace instead of a delimiter
3 years ago
Jessica James
c847d008fb
Moved public headers to a jessilib subfolder; adjusted code as necessary
3 years ago
Jessica James
bdebc6fba2
More cleanup
3 years ago
Jessica James
6fe7bfb5ac
general cleanup
3 years ago
Jessica James
e7e08719a0
Added split, split_once, split_n variants accepting strings as
delimiters
More tests
Another minor fix for debug assertion failure in timer
3 years ago
Jessica James
6ba4d916a9
Added impl::member_from_range to workaround missing library support for basic_string_view(first,last)
3 years ago
Jessica James
32e397603f
Fix issues with timers causing timer tests to fail
3 years ago
Jessica James
5267a4726d
vector pass
3 years ago
Jessica James
91bd82777f
Add split_n & split_once; some tests
3 years ago
Jessica James
af08397e2b
forgot file header
3 years ago
Jessica James
af1b9fb8cb
add basic split function & tests so I can copy this elsewhere
3 years ago
Jessica James
59d04d737a
Update fmt and googletest submodules, fix various compilation issues
3 years ago
Jessica James
54fb6b9f24
Add `duration.hpp` and associated tests
3 years ago
Jessica James
1a78688d0d
Committing various work which was apparently never committed; should break out of that habit
3 years ago
Jessica James
22f81473ba
Committing `command` work that was apparently never committed
4 years ago
Jessica James
7765f6eb1d
Added some basic tests, minor compilation fix
5 years ago
Jessica James
120feb508e
Added associative container constructor to `object`
Added `is_associative_container`, `is_map`, `is_unordered_map`
TODO: add tests
5 years ago
Jessica James
b9163b14af
Added `color` type & tests
Added initial `text`, `message`, `formatted_message` types
Added ANSI & IRC `text` object formatting / conversions
Added fmt submodule
Added `jessibot` target
5 years ago
Jessica James
5f25583c23
Added `hasSwitch()` and `getValue()` methods to `app_parameters`
5 years ago
Jessica James
27ddf01052
Added `app_parameters` class and tests
5 years ago
Jessica James
e0d5ab6a27
Various bits of cleanup
5 years ago
Jessica James
21ac7ba4eb
Replaced nullptr_t with void* in object's variant
5 years ago
Jessica James
0093f0f00e
Added initial JSON parser
Added `unicode.hpp`, providing various unicode-related utilities
Moved template type helpers from `util.hpp` to `type_traits.hpp`
Added Boost.Asio as submodule for upcoming use
6 years ago