.. introcs documentation master file, created by sphinx-quickstart on Thu Jul 26 09:50:44 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. currentmodule:: introcs String Functions ================ ``import introcs`` The purpose of this functions is to allow students to work with strings without having to understand method calls. We do not provide all string methods as functions -- just the most popular ones. Type Checking ------------- isalnum ^^^^^^^ .. autofunction:: isalnum isalpha ^^^^^^^ .. autofunction:: isalpha islower ^^^^^^^ .. autofunction:: islower isupper ^^^^^^^ .. autofunction:: isupper isdecimal ^^^^^^^^^ .. autofunction:: isdecimal isdigit ^^^^^^^ .. autofunction:: isdigit isnumeric ^^^^^^^^^ .. autofunction:: isnumeric isspace ^^^^^^^ .. autofunction:: isspace isprintable ^^^^^^^^^^^ .. autofunction:: isprintable Casing ------ capitalize ^^^^^^^^^^ .. autofunction:: capitalize swapcase ^^^^^^^^ .. autofunction:: swapcase lower ^^^^^ .. autofunction:: lower upper ^^^^^ .. autofunction:: upper Searching --------- count_str ^^^^^^^^^ .. autofunction:: count_str endswith_str ^^^^^^^^^^^^ .. autofunction:: endswith_str startswith_str ^^^^^^^^^^^^^^ .. autofunction:: startswith_str find_str ^^^^^^^^ .. autofunction:: find_str rfind_str ^^^^^^^^^ .. autofunction:: rfind_str index_str ^^^^^^^^^ .. autofunction:: index_str rindex_str ^^^^^^^^^^ .. autofunction:: rindex_str replace_str ^^^^^^^^^^^ .. autofunction:: replace_str Formatting ---------- center ^^^^^^ .. autofunction:: center ljust ^^^^^ .. autofunction:: ljust rjust ^^^^^ .. autofunction:: rjust strip ^^^^^ .. autofunction:: strip lstrip ^^^^^^ .. autofunction:: lstrip rstrip ^^^^^^ .. autofunction:: rstrip Splitting --------- join ^^^^ .. autofunction:: join split ^^^^^ .. autofunction:: split rsplit ^^^^^^ .. autofunction:: rsplit partition ^^^^^^^^^ .. autofunction:: partition rpartition ^^^^^^^^^^ .. autofunction:: rpartition .. toctree:: :maxdepth: 2