aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/string_tools.h
Commit message (Collapse)AuthorAgeFilesLines
* epee: partially revert c56ee140 to fix linking errorsjeffro2562024-12-091-2/+0
| | | | | On Linux Mint 21.3, g++ Ubuntu 11.4.0-1ubuntu1~22.04, I get linking error for an undefined reference to `epee::string_tools::trim_right`. This PR reverts the changes to epee_readline.cpp in commit c56ee140, which turns a `boost::trim_right` callsite into an `epee::string_tools::trim_right` callsite.
* build: fix build with Boost 1.85 and remove instances of viewkey logging ↵jeffro2562024-09-101-0/+3
| | | | | | | | | | | [RELEASE] 1. Use std::is_standard_layout and std::is_trivially_copyable instead of std::is_pod for KV byte-wise serialization, which fixes compile issue for Boost UUIDs 2. Removed reimplementation of std::hash for boost::uuids::uuid 3. Removed << operator overload for crypto::secret_key 4. Removed instances in code where private view key was dumped to the log in plaintext Release version of #9450, containing C++14 modified assertions
* Cleanup string_tools.0xFFFC00002024-03-151-10/+7
| | | | | 1. Use boost::filesystem for already available operations. 2. Use boost::string for already available operations.
* Split epee/string_tools.h and encapsulate boost::lexical_castmj-xmr2021-04-161-260/+40
|
* Move hex->bin conversion to monero copyright files and with less includesLee Clagett2020-03-091-31/+3
|
* Remove temporary std::string creation in some hex->bin callsLee Clagett2020-03-091-5/+6
|
* epee: fix peer ids being truncated on displaymoneromooo-monero2019-11-141-1/+3
|
* epee: support unicode in parsed stringsmoneromooo-monero2019-08-161-22/+2
|
* epee: some more minor JSON parsing speedupmoneromooo-monero2019-03-251-1/+3
|
* Pruningmoneromooo-monero2019-01-221-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
* Merge pull request #5001Riccardo Spagni2019-01-161-30/+0
|\ | | | | | | a5ffc2d5 Remove boost::lexical_cast for uuid and unused uuid function (Lee Clagett)
| * Remove boost::lexical_cast for uuid and unused uuid functionLee Clagett2018-12-231-30/+0
| |
* | epee: avoid string allocation when parsing a pod from stringmoneromooo-monero2018-12-081-36/+12
|/
* epee: speed up parse_hexstr_to_binbuff a littleHoward Chu2018-11-151-15/+35
|
* common: add a class to safely wrap mlock/munlockmoneromooo-monero2018-08-161-0/+7
| | | | | | This class will allow mlocking small objects, of which there may be several per page. It adds refcounting so pages are only munlocked when the last object on that page munlocks.
* epee.string_tools: add conversion between UTF-8 and UTF-16stoffu2018-06-281-0/+35
|
* Remove is_pod trait, and replace with is_standard_layout requirementLee Clagett2018-01-181-1/+8
|
* catch const exceptionsmoneromooo-monero2017-12-181-1/+1
|
* move includes around to lessen overall loadmoneromooo-monero2017-12-161-7/+4
|
* add string_tools::validate_hex()Jaquee2017-10-151-0/+6
|
* print peer id in 0 padded hex for consistencymoneromooo-monero2017-08-231-0/+12
|
* abstracted nework addressesmoneromooo-monero2017-05-271-1/+1
| | | | | | | | | | All code which was using ip and port now uses a new IPv4 object, subclass of a new network_address class. This will allow easy addition of I2P addresses later (and also IPv6, etc). Both old style and new style peer lists are now sent in the P2P protocol, which is inefficient but allows peers using both codebases to talk to each other. This will be removed in the future. No other subclasses than IPv4 exist yet.
* Removed some unused epee functionsLee Clagett2017-04-251-356/+1
|
* Improvements for epee binary to hex functions:Lee Clagett2017-04-111-28/+5
| | | | | | | - Performance improvements - Added `span` for zero-copy pointer+length arguments - Added `std::ostream` overload for direct writing to output buffers - Removal of unused `string_tools::buff_to_hex`
* Removed boost/asio.hpp include from epee/string_tools.hLee Clagett2017-03-181-23/+9
|
* adding static_assert to pod functions in string toolsLee Clagett2016-10-311-0/+4
|
* allow peers without portmoneromooo-monero2016-07-031-4/+9
| | | | The default port is then used
* Require 64/16 characters for payment idsmoneromooo-monero2016-06-191-1/+3
| | | | | | | The default behavior for hex string parsing would allow the last digit to be made from a single hexadecimal character, which is correct, but we typically do not want that as it gets confusing and easy to not spot wrong input size.
* move modified epee code to new classes, revert licensefluffypony2014-07-251-25/+23
|
* License updated to BSD 3-clausefluffypony2014-07-231-23/+25
|
* 0.8.8updatemydesktop2014-05-251-0/+1
|
* some fixesAntonio Juarez2014-03-201-23/+31
|
* moved all stuff to githubAntonio Juarez2014-03-031-0/+736