jaypha-base 1.0.1
Generic code and definitions used in many Jaypha projects.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Jaypha Base
This project contains generic code that is used in many of my projects and is provided separately to avoid repetition. The code in this package is usable on its own.
The functions here generally extend the functionality provided by Phobos.
Documentation
See doc.html for reference documentation.
Modules
All my modules are kept under the 'jaypha' umbrella package.
List of Functions
altIndexOf - A quick and dirty alternative to indexOf. Only works with ASCII. binToHex - Converts an unsigned interger into a hex string. bitsToList - Extract the bits from a number and puts them into an aray. ByChunk - Splits a range into chunks of given size. Doesn't work with narrow strings. byChunk - Convenience function for returning ByChunk structs. diff - Returns everything in one array that is not in another. drain - Consume the rest of the range. findSplit - Alternative to std.alogrithm.findSplit usable with non-rewindable ranges. grab - Grabs as much of the given string, until a character is found that is in a supplied pattern. isDigits - Are all characters digits? listToBits - Reduces an array to a single value by or-ing them together. meld - Map-like algorithm that merges the index and values of an associative array. munch - Consumes the front of the range as long the elements are inside pattern. rnd - A wrapper for rndGen to prevent copying, provided by monarch_dodra. rndHex - A randomly generated string of hex characters. Useful for filenames. rndId - A random string of lower case ASCII letters. rndString - A random string of ASCII printable characters. Useful for passwords. rtMap - Similar to std.algorithm.map except that the mapping function is not a template parameter. splitUp - Splits a string into substrings based on a group of possible delimiters. toCamelCase - Converts a string to camel case.
License
Distributed under the Boost License.
Contact
Todo
Many functions could do with polishing, but are usable in the current state.
Current Problems
None known
- Registered by Jason den Dulk
- 1.0.1 released 9 years ago
- jaypha/jaypha-base
- BSL-1.0
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.6 2017-Apr-21 1.0.5 2016-Jun-22 1.0.4 2016-Apr-29 1.0.3 2016-Apr-18 1.0.2 2015-Dec-15 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
217 downloads total
-
- Score:
- 0.3
- Short URL:
- jaypha-base.dub.pm