summaryrefslogtreecommitdiff
path: root/doc/source/reference/routines.char.rst
diff options
context:
space:
mode:
authormdroe <mdroe@localhost>2009-10-12 15:24:43 +0000
committermdroe <mdroe@localhost>2009-10-12 15:24:43 +0000
commit7deb4d5db4282e1e1c860dda268a21c6979e9725 (patch)
tree6dbd07a1dfcec326ce90228c17cbdd337f4f1621 /doc/source/reference/routines.char.rst
parent66c62a8aeed8c963e2ef108685d5681e1e445f3d (diff)
downloadnumpy-7deb4d5db4282e1e1c860dda268a21c6979e9725.tar.gz
Many improvements to chararray. Fixes Trac bugs 1199, 856, 855, 1231, 1235, 1240, 1241. docstrings, full unit-test coverage, C-based vectorized string operations.
Diffstat (limited to 'doc/source/reference/routines.char.rst')
-rw-r--r--doc/source/reference/routines.char.rst88
1 files changed, 88 insertions, 0 deletions
diff --git a/doc/source/reference/routines.char.rst b/doc/source/reference/routines.char.rst
new file mode 100644
index 000000000..2e995a772
--- /dev/null
+++ b/doc/source/reference/routines.char.rst
@@ -0,0 +1,88 @@
+String operations
+*****************
+
+.. currentmodule:: numpy.core.defchararray
+
+This module provides a set of vectorized string operations for arrays
+of type `numpy.string_` or `numpy.unicode_`. All of them are based on
+the string methods in the Python standard library.
+
+String operations
+-----------------
+
+.. autosummary::
+ :toctree: generated/
+
+ add
+ multiply
+ mod
+ capitalize
+ center
+ decode
+ encode
+ join
+ ljust
+ lower
+ lstrip
+ partition
+ replace
+ rjust
+ rpartition
+ rsplit
+ rstrip
+ split
+ splitlines
+ strip
+ swapcase
+ title
+ translate
+ upper
+ zfill
+
+Comparison
+----------
+
+Unlike the standard numpy comparison operators, the ones in the `char`
+module strip trailing whitespace characters before performing the
+comparison.
+
+.. autosummary::
+ :toctree: generated/
+
+ equal
+ not_equal
+ greater_equal
+ less_equal
+ greater
+ less
+
+String information
+------------------
+
+.. autosummary::
+ :toctree: generated/
+
+ count
+ len
+ find
+ index
+ isalpha
+ isdecimal
+ isdigit
+ islower
+ isnumeric
+ isspace
+ istitle
+ isupper
+ rfind
+ rindex
+ startswith
+
+Convenience class
+-----------------
+
+.. autosummary::
+ :toctree: generated/
+
+ chararray
+