CHRPAK
Characters and Strings
CHRPAK
is a Python library which
can handle characters and strings.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
CHRPAK is available in
a C version and
a C++ version and
a FORTRAN90 version and
a MATLAB version and
a Python version.
Related Software and Data:
CAESAR,
a Python library which
can apply a Caesar Shift Cipher to a string of text.
FILE_NAME_SEQUENCE,
a Python program which
demonstrates ways to generate a sequence of filenames
that can be used when generating images for an animation.
ROT13,
a Python library which
can encipher a string using the ROT13 cipher for letters, and the
ROT5 cipher for digits.
Source Code:
-
ch_cap.py,
capitalizes a character.
-
ch_is_digit.py
is TRUE if a character is a digit.
-
ch_is_isbn_digit.py
is TRUE if a character is an ISBN digit.
-
ch_to_digit.py
converts a character to a digit;
-
ch_to_rot13.m,
converts a character to its ROT13 encoding;
-
digit_to_ch.py,
converts a digit to a character;
-
i4_length.py,
computes the number of characters needed to print an I4.
-
i4_to_isbn_digit.py,
converts an I4 between 0 and 10 to an ISBN digit.
-
i4_uniform_ab.py,
returns a scaled uniform I4 between A and B.
-
i4vec_print.py,
prints an I4VEC.
-
isbn_digit_to_i4.py,
converts an ISBN digit to a digit between 0 and 10.
-
rat_to_s.py,
converts a rational to a left-justified string.
-
s_digits_count.py,
counts the digits in a string.
-
s_len_trim.m
returns the length of a string to the last non-blank character;
-
s_quote.m
quotes a string;
-
s_to_caesar.py
applies a Caesar shift cipher to a string.
-
s_to_digits.py,
extracts the digits from a string.
-
s_to_isbn_digits.py,
extracts the ISBN digits from a string.
-
s_to_rot13.py
encodes or decodes a string using ROT13;
-
timestamp.py,
returns the current YMDHMS date as a timestamp.
Examples and Tests:
You can go up one level to
the Python source codes.
Last revised on 03 September 2018.