?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
Ñò [ÐKc;@sndZddkZddklZlZlZlZlZlZddk l Z l Z ddk l Z ddklZddkZddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;g5Zd<aeZeZd=„Zd>„Zd?„Zd@„ZdA„ZdB„ZdC„ZdD„ZdE„ZdF„Z dG„Z!dH„Z"dI„Z#dJ„Z$dK„Z%ei&dLdMfjodNdO„Z'n dP„Z'd<e(dQ„Z)e(e(dR„Z*e(e(dS„Z+d<e(dT„Z,dUdV„Z-d<e(dW„Z.d<e(dX„Z/dY„Z0dZ„Z1d[„Z2d\„Z3d]„Z4d^„Z5d_„Z6d`„Z7ei&dLdMfjodNda„Z8n db„Z8dc„Z9e(dd„Z:ei&dLdefjo df„Z;ne(dg„Z<d<e(dh„Z=d<e(di„Z>ei&dLdMfjodNdj„Z?n dk„Z?ei&dLdefjo dl„Z@nei&dLdMfjoe(e(dm„ZAne(dn„ZBe(e(do„ZCe(dp„ZDd<e(dq„ZEe(dr„ZFds„ZGdt„ZHe(du„ZIdv„ZJdw„ZKdx„ZLdy„ZMde fdz„ƒYZNe(eOe(e(d{„Z e(e(e(d|„ZPdS(}sB This module contains a set of functions for vectorized string operations and methods. .. note:: The `chararray` class exists for backwards compatibility with Numarray, it is not recommended for new development. If one needs arrays of strings, use arrays of `dtype` `object_`, `string_` or `unicode_`, and use the free functions in the `numpy.char` module for fast vectorized string operations. Some methods will only be available if the corresponding str method is available in your version of Python. The preferred alias for `defchararray` is `numpy.char`. iÿÿÿÿN(tstring_tunicode_tintegertobject_tbool_t character(tndarraytcompare_chararrays(tarray(t _vec_stringt chararraytequalt not_equalt greater_equalt less_equaltgreatertlesststr_lentaddtmultiplytmodt capitalizetcentertcounttdecodetencodetendswitht expandtabstfindtformattindextisalnumtisalphatisdigittislowertisspacetistitletisuppertjointljusttlowertlstript partitiontreplacetrfindtrindextrjustt rpartitiontrsplittrstriptsplitt splitlinest startswithtstriptswapcasettitlet translatetuppertzfillt isnumerict isdecimalRtasarrayicGsIxB|D]:}t|tƒptti|ƒiitƒotSqWtS(s½ Helper function for determining the output type of some string operations. For an operation on two ndarrays, if at least one is unicode, the result should be unicode. ( t isinstancet_unicodet issubclasstnumpyR=tdtypettypeRR(targstx((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt _use_unicode*s  cCsti|iƒƒS(s† Helper function to cast a result back into a string or unicode array if an object array must be used as an intermediary. (RAR=ttolist(tresult((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt_to_string_or_unicode_array8scGs:g}x-|D]%}|djoPn|i|ƒq W|S(s# Helper function for delegating arguments to Python string functions. Many of the Python string operations that have optional arguments do not use 'None' to indicate a default value. In these cases, we need to remove all `None` arguments, and those following them. N(tNonetappend(RDtnewargstchk((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt _clean_args?s  cCs)t|iitƒo |idS|iS(sÀ Helper function that returns the number of characters per field in a string or unicode array. This is to abstract out the fact that for a unicode array this is itemsize / 4. i(R@RBRCRtitemsize(ta((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt_get_num_charsOs cCst||dtƒS(s4 Return (x1 == x2) element-wise. Unlike `numpy.equal`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- not_equal, greater_equal, less_equal, greater, less s==(RtTrue(tx1tx2((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR ZscCst||dtƒS(s4 Return (x1 != x2) element-wise. Unlike `numpy.not_equal`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- equal, greater_equal, less_equal, greater, less s!=(RRR(RSRT((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR rscCst||dtƒS(s7 Return (x1 >= x2) element-wise. Unlike `numpy.greater_equal`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- equal, not_equal, less_equal, greater, less s>=(RRR(RSRT((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR ŠscCst||dtƒS(s4 Return (x1 <= x2) element-wise. Unlike `numpy.less_equal`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- equal, not_equal, greater_equal, greater, less s<=(RRR(RSRT((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR£scCst||dtƒS(s3 Return (x1 > x2) element-wise. Unlike `numpy.greater`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- equal, not_equal, greater_equal, less_equal, less t>(RRR(RSRT((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR»scCst||dtƒS(s6 Return (x1 < x2) element-wise. Unlike `numpy.greater`, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters ---------- x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns ------- out : {ndarray, bool} Output array of bools, or a single bool if x1 and x2 are scalars. See Also -------- equal, not_equal, greater_equal, less_equal, greater t<(RRR(RSRT((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRÓscCst|tdƒS(sä Return len(a) element-wise. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of integers See also -------- __builtin__.len t__len__(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRëscCs_ti|ƒ}ti|ƒ}t|ƒt|ƒ}t||ƒ}t|||fd|fƒS(sS Return (x1 + x2), that is string concatenation, element-wise for a pair of array_likes of str or unicode. Parameters ---------- x1 : array_like of str or unicode x2 : array_like of str or unicode Returns ------- out : ndarray Output array of string_ or unicode_, depending on input types t__add__(RAR=RQRFR (RSRTtarr1tarr2tout_sizeRB((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRþs cCsˆti|ƒ}ti|ƒ}t|iitƒp td‚nt|ƒtt |iƒƒdƒ}t ||ii|fd|fƒS(sv Return (a * i), that is string multiple concatenation, element-wise. Values in `i` of less than 0 are treated as 0 (which yields an empty string). Parameters ---------- a : array_like of str or unicode i : array_like of ints Returns ------- out : ndarray Output array of str or unicode, depending on input types sCan only multiply by integersit__mul__( RAR=R@RBRCRt ValueErrorRQtmaxtlongR (RPtita_arrti_arrR[((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRs %cCstt|td|fƒƒS(sÚ Return (a % i), that is pre-Python 2.6 string formatting (iterpolation), element-wise for a pair of array_likes of str or unicode. Parameters ---------- a : array_like of str or unicode values : array_like of values These values will be element-wise interpolated into the string. Returns ------- out : ndarray Output array of str or unicode, depending on input types See also -------- str.__mod__ t__mod__(RIR R(RPtvalues((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR/scCs"ti|ƒ}t||idƒS(s Return a copy of `a` with only the first character of each element capitalized. Calls `str.capitalize` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input types See also -------- str.capitalize Examples -------- >>> c = np.array(['a1b2','1b2a','b2a1','2a1b'],'S4'); c array(['a1b2', '1b2a', 'b2a1', '2a1b'], dtype='|S4') >>> np.char.capitalize(c) array(['A1b2', '1b2a', 'B2a1', '2a1b'], dtype='|S4') R(RAR=R RB(RPRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRIs iit cCs[ti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd||fƒS(sO Return a copy of `a` with its elements centered in a string of length `width`. Calls `str.center` element-wise. Parameters ---------- a : array_like of str or unicode width : int The length of the resulting strings fillchar : str or unicode, optional The padding character to use (default is space). Returns ------- out : ndarray Output array of str or unicode, depending on input types See also -------- str.center R(RAR=R_R^tflatR RBRC(RPtwidthtfillcharRat width_arrtsize((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRms cCsXti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd|fƒS(sè Return an array with the elements of `a` centered in a string of length width. Calls `str.center` element-wise. Parameters ---------- a : array_like of str or unicode width : int The length of the resulting strings Returns ------- out : ndarray, str or unicode Output array of str or unicode, depending on input types See also -------- str.center R(RAR=R_R^RfR RBRC(RPRgRaRiRj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRŽs cCs#t|td||gt|ƒƒS(s¼ Returns an array with the number of non-overlapping occurrences of substring `sub` in the range [`start`, `end`]. Calls `str.count` element-wise. Parameters ---------- a : array_like of str or unicode sub : str or unicode The substring to search for. start, end : int, optional Optional arguments `start` and `end` are interpreted as slice notation to specify the range in which to count. Returns ------- out : ndarray Output array of ints. See also -------- str.count Examples -------- >>> c = np.array(['aAaAaA', ' aA ', 'abBABba']) >>> c array(['aAaAaA', ' aA', 'abBABba'], dtype='|S7') >>> np.char.count(c, 'A') array([3, 1, 1]) >>> np.char.count(c, 'aA') array([3, 1, 0]) >>> np.char.count(c, 'A', start=1, end=4) array([2, 1, 1]) >>> np.char.count(c, 'A', start=1, end=3) array([1, 0, 0]) R(R RRN(RPtsubtstarttend((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRªs+cCs"tt|tdt||ƒƒƒS(sƒ Calls `str.decode` element-wise. The set of available codecs comes from the Python standard library, and may be extended at runtime. For more information, see the :mod:`codecs` module. Parameters ---------- a : array_like of str or unicode encoding : str, optional The name of an encoding errors : str, optional Specifies how to handle encoding errors Returns ------- out : ndarray See also -------- str.decode Notes ----- The type of the result will depend on the encoding specified. Examples -------- >>> c = np.array(['aAaAaA', ' aA ', 'abBABba']) >>> c array(['aAaAaA', ' aA', 'abBABba'], dtype='|S7') >>> np.char.encode(c, encoding='cp037') array(['\x81\xc1\x81\xc1\x81\xc1', '@@\x81\xc1@@', '\x81\x82\xc2\xc1\xc2\x82\x81'], dtype='|S7') R(RIR RRN(RPtencodingterrors((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR×s*cCs"tt|tdt||ƒƒƒS(sA Calls `str.encode` element-wise. The set of available codecs comes from the Python standard library, and may be extended at runtime. For more information, see the codecs module. Parameters ---------- a : array_like of str or unicode encoding : str, optional The name of an encoding errors : str, optional Specifies how to handle encoding errors Returns ------- out : ndarray See also -------- str.encode Notes ----- The type of the result will depend on the encoding specified. R(RIR RRN(RPRnRo((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRscCs#t|td||gt|ƒƒS(sN Returns a boolean array which is `True` where the string element in `a` ends with `suffix`, otherwise `False`. Calls `str.endswith` element-wise. Parameters ---------- a : array_like of str or unicode suffix : str start, end : int, optional With optional `start`, test beginning at that position. With optional `end`, stop comparing at that position. Returns ------- out : ndarray Outputs an array of bools. See also -------- str.endswith Examples -------- >>> s = np.array(['foo', 'bar']) >>> s[0] = 'foo' >>> s[1] = 'bar' >>> s array(['foo', 'bar'], dtype='|S3') >>> np.charendswith(s, 'ar') array([False, True], dtype=bool) >>> s.endswith(s, 'a', start=1, end=2) array([False, True], dtype=bool) R(R RRN(RPtsuffixRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR&s(icCstt|td|fƒƒS(s" Return a copy of each string element where all tab characters are replaced by one or more spaces. Calls `str.expandtabs` element-wise. Return a copy of each string element where all tab characters are replaced by one or more spaces, depending on the current column and the given `tabsize`. The column number is reset to zero after each newline occurring in the string. If `tabsize` is not given, a tab size of 8 characters is assumed. This doesn't understand other non-printing characters or escape sequences. Parameters ---------- a : array_like of str or unicode tabsize : int, optional Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.expandtabs R(RIR R(RPttabsize((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRQscCs#t|td||gt|ƒƒS(sŸ For each element, return the lowest index in the string where substring `sub` is found. Calls `str.find` element-wise. For each element, return the lowest index in the string where substring `sub` is found, such that `sub` is contained in the range [`start`, `end`]. Parameters ---------- a : array_like of str or unicode sub : str or unicode start, end : int, optional Optional arguments `start` and `end` are interpreted as in slice notation. Returns ------- out : ndarray or int Output array of ints. Returns -1 if `sub` is not found. See also -------- str.find R(R RRN(RPRkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRpscCs#t|td||gt|ƒƒS(s Like `find`, but raises `ValueError` when the substring is not found. Calls `str.index` element-wise. Parameters ---------- a : array_like of str or unicode sub : str or unicode start, end : int, optional Returns ------- out : ndarray Output array of ints. Returns -1 if `sub` is not found. See also -------- find, str.find R(R RRN(RPRkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR—scCst|tdƒS(sÌ Returns true for each element if all characters in the string are alphanumeric and there is at least one character, false otherwise. Calls `str.isalnum` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.isalnum R(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR²scCst|tdƒS(s¨ Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. Calls `str.isalpha` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of bools See also -------- str.isalpha R (R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR ÊscCst|tdƒS(s¤ Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. Calls `str.isdigit` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of bools See also -------- str.isdigit R!(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR!âscCst|tdƒS(s· Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. Calls `str.islower` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of bools See also -------- str.islower R"(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR"úscCst|tdƒS(s³ Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. Calls `str.isspace` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of bools See also -------- str.isspace R#(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR#scCst|tdƒS(sž Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. Call `str.istitle` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of bools See also -------- str.istitle R$(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR$,scCst|tdƒS(s° Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. Call `str.isupper` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode Returns ------- out : ndarray Output array of bools See also -------- str.isupper R%(R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR%DscCstt|td|fƒƒS(sƒ Return a string which is the concatenation of the strings in the sequence `seq`. Calls `str.join` element-wise. Parameters ---------- sep : array_like of str or unicode seq : array_like of str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input types See also -------- str.join R&(RIR R(tseptseq((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR&]scCs[ti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd||fƒS(s8 Return an array with the elements of `a` left-justified in a string of length `width`. Calls `str.ljust` element-wise. Parameters ---------- a : array_like of str or unicode width : int The length of the resulting strings fillchar : str or unicode, optional The character to use for padding Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.ljust R'(RAR=R_R^RfR RBRC(RPRgRhRaRiRj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR'vs cCsXti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd|fƒS(sÝ Return an array with the elements of `a` left-justified in a string of length `width`. Calls `str.ljust` element-wise. Parameters ---------- a : array_like of str or unicode width : int The length of the resulting strings Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.ljust R'(RAR=R_R^RfR RBRC(RPRgRaRiRj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR'–s cCs"ti|ƒ}t||idƒS(sn Return an array with the elements of `a` converted to lowercase. Call `str.lower` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array-like of str or unicode Returns ------- out : ndarray, str or unicode Output array of str or unicode, depending on input type See also -------- str.lower Examples -------- >>> c = np.array(['A1B C', '1BCA', 'BCA1']); c array(['A1B C', '1BCA', 'BCA1'], dtype='|S5') >>> np.char.lower(c) array(['a1b c', '1bca', 'bca1'], dtype='|S5') R((RAR=R RB(RPRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR(²scCs(ti|ƒ}t||id|fƒS(sØ For each element in `a`, return a copy with the leading characters removed. Calls `str.lstrip` element-wise. Parameters ---------- a : array-like of str or unicode chars : str or unicode, optional The `chars` argument is a string specifying the set of characters to be removed. If omitted or None, the `chars` argument defaults to removing whitespace. The `chars` argument is not a prefix; rather, all combinations of its values are stripped. Returns ------- out : ndarray, str or unicode Output array of str or unicode, depending on input type See also -------- str.lstrip Examples -------- >>> c = np.array(['aAaAaA', ' aA ', 'abBABba']) >>> c array(['aAaAaA', ' aA', 'abBABba'], dtype='|S7') >>> np.char.lstrip(c, 'a') # 'a' unstripped from c[1] because whitespace leading array(['AaAaA', ' aA', 'bBABba'], dtype='|S6') >>> np.char.lstrip(c, 'A') # leaves c unchanged array(['aAaAaA', ' aA', 'abBABba'], dtype='|S7') >>> (np.char.lstrip(c, ' ') == np.char.lstrip(c, '')).all() True >>> (np.char.lstrip(c, ' ') == np.char.lstrip(c, None)).all() True R)(RAR=R RB(RPtcharsRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR)Ós-icCstt|td|fƒƒS(sO Partition each element in `a` around `sep`. Calls `str.partition` element-wise. For each element in `a`, split the element as the first occurrence of `sep`, and return 3 strings containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 strings containing the string itself, followed by two empty strings. Parameters ---------- a : array-like of str or unicode sep : str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input type. The output array will have an extra dimension with 3 elements per input element. See also -------- str.partition R*(RIR R(RPRr((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR*scCs)tt|td||gt|ƒƒƒS(s% For each element in `a`, return a copy of the string with all occurrences of substring `old` replaced by `new`. Calls `str.replace` element-wise. Parameters ---------- a : array-like of str or unicode old, new : str or unicode count : int, optional If the optional argument `count` is given, only the first `count` occurrences are replaced. Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.replace R+(RIR RRN(RPtoldtnewR((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR+#scCs#t|td||gt|ƒƒS(s. For each element in `a`, return the highest index in the string where substring `sub` is found, such that `sub` is contained within [`start`, `end`]. Calls `str.rfind` element-wise. Parameters ---------- a : array-like of str or unicode sub : str or unicode start, end : int, optional Optional arguments `start` and `end` are interpreted as in slice notation. Returns ------- out : ndarray Output array of ints. Return -1 on failure. See also -------- str.rfind R,(R RRN(RPRkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR,BscCs#t|td||gt|ƒƒS(sx Like `rfind`, but raises `ValueError` when the substring `sub` is not found. Calls `str.rindex` element-wise. Parameters ---------- a : array-like of str or unicode sub : str or unicode start, end : int, optional Returns ------- out : ndarray Output array of ints. See also -------- rfind, str.rindex R-(R RRN(RPRkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR-ascCs[ti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd||fƒS(s9 Return an array with the elements of `a` right-justified in a string of length `width`. Calls `str.rjust` element-wise. Parameters ---------- a : array_like of str or unicode width : int The length of the resulting strings fillchar : str or unicode, optional The character to use for padding Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.rjust R.(RAR=R_R^RfR RBRC(RPRgRhRaRiRj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR.~s cCsXti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd|fƒS(sÞ Return an array with the elements of `a` right-justified in a string of length `width`. Calls `str.rjust` element-wise. Parameters ---------- a : array_like of str or unicode width : int The length of the resulting strings Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.rjust R.(RAR=R_R^RfR RBRC(RPRgRaRiRj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR.žs cCstt|td|fƒƒS(sT Partition each element in `a` around `sep`. Calls `str.rpartition` element-wise. For each element in `a`, split the element as the last occurrence of `sep`, and return 3 strings containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 strings containing the string itself, followed by two empty strings. Parameters ---------- a : array-like of str or unicode sep : str or unicode Returns ------- out : ndarray Output array of string or unicode, depending on input type. The output array will have an extra dimension with 3 elements per input element. See also -------- str.rpartition R/(RIR R(RPRr((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR/»scCs t|td|gt|ƒƒS(sú For each element in `a`, return a list of the words in the string, using `sep` as the delimiter string. Calls `str.rsplit` element-wise. Except for splitting from the right, `rsplit` behaves like `split`. Parameters ---------- a : array_like of str or unicode sep : str or unicode, optional If `sep` is not specified or `None`, any whitespace string is a separator. maxsplit : int, optional If `maxsplit` is given, at most `maxsplit` splits are done, the rightmost ones. Returns ------- out : ndarray Array of list objects See also -------- str.rsplit, split R0(R RRN(RPRrtmaxsplit((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR0Ûs!cCs(ti|ƒ}t||id|fƒS(sÍ For each element in `a`, return a copy with the trailing characters removed. Calls `str.rstrip` element-wise. Parameters ---------- a : array-like of str or unicode chars : str or unicode, optional The `chars` argument is a string specifying the set of characters to be removed. If omitted or None, the `chars` argument defaults to removing whitespace. The `chars` argument is not a suffix; rather, all combinations of its values are stripped. Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.rstrip Examples -------- >>> c = np.array(['aAaAaA', 'abBABba'], dtype='S7'); c array(['aAaAaA', 'abBABba'], dtype='|S7') >>> np.char.rstrip(c, 'a') array(['aAaAaA', 'abBABb'], dtype='|S6') >>> np.char.rstrip(c, 'A') array(['aAaAa', 'abBABba'], dtype='|S7') R1(RAR=R RB(RPRtRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR1ÿs(cCs t|td|gt|ƒƒS(s9 For each element in `a`, return a list of the words in the string, using `sep` as the delimiter string. Calls `str.rsplit` element-wise. Parameters ---------- a : array_like of str or unicode sep : str or unicode, optional If `sep` is not specified or `None`, any whitespace string is a separator. maxsplit : int, optional If `maxsplit` is given, at most `maxsplit` splits are done. Returns ------- out : ndarray Array of list objects See also -------- str.split, rsplit R2(R RRN(RPRrRw((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR2*scCst|tdt|ƒƒS(sÙ For each element in `a`, return a list of the lines in the element, breaking at line boundaries. Calls `str.splitlines` element-wise. Parameters ---------- a : array_like of str or unicode keepends : bool, optional Line breaks are not included in the resulting list unless keepends is given and true. Returns ------- out : ndarray Array of list objects See also -------- str.splitlines R3(R RRN(RPtkeepends((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR3KscCs#t|td||gt|ƒƒS(s Returns a boolean array which is `True` where the string element in `a` starts with `prefix`, otherwise `False`. Calls `str.startswith` element-wise. Parameters ---------- a : array_like of str or unicode suffix : str start, end : int, optional With optional `start`, test beginning at that position. With optional `end`, stop comparing at that position. Returns ------- out : ndarray Array of booleans See also -------- str.startswith R4(R RRN(RPtprefixRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR4gscCs+ti|ƒ}t||idt|ƒƒS(s½ For each element in `a`, return a copy with the leading and trailing characters removed. Calls `str.rstrip` element-wise. Parameters ---------- a : array-like of str or unicode chars : str or unicode, optional The `chars` argument is a string specifying the set of characters to be removed. If omitted or None, the `chars` argument defaults to removing whitespace. The `chars` argument is not a prefix or suffix; rather, all combinations of its values are stripped. Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.strip Examples -------- >>> c = np.array(['aAaAaA', ' aA ', 'abBABba']) >>> c array(['aAaAaA', ' aA', 'abBABba'], dtype='|S7') >>> np.char.strip(c) array(['aAaAaA', 'aA', 'abBABba'], dtype='|S7') >>> np.char.strip(c, 'a') # 'a' unstripped from c[1] because whitespace leads array(['AaAaA', ' aA', 'bBABb'], dtype='|S6') >>> np.char.strip(c, 'A') # 'A' unstripped from c[1] because (unprinted) ws trails array(['aAaAa', ' aA', 'abBABba'], dtype='|S7') R5(RAR=R RBRN(RPRtRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR5…s,cCs"ti|ƒ}t||idƒS(s» For each element in `a`, return a copy of the string with uppercase characters converted to lowercase and vice versa. Calls `str.swapcase` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array-like of str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.swapcase Examples -------- >>> c=np.array(['a1B c','1b Ca','b Ca1','cA1b'],'S5'); c array(['a1B c', '1b Ca', 'b Ca1', 'cA1b'], dtype='|S5') >>> np.char.swapcase(c) array(['A1b C', '1B cA', 'B cA1', 'Ca1B'], dtype='|S5') R6(RAR=R RB(RPRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR6´scCs"ti|ƒ}t||idƒS(sÝ For each element in `a`, return a titlecased version of the string: words start with uppercase characters, all remaining cased characters are lowercase. Calls `str.title` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array-like of str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.title Examples -------- >>> c=np.array(['a1b c','1b ca','b ca1','ca1b'],'S5'); c array(['a1b c', '1b ca', 'b ca1', 'ca1b'], dtype='|S5') >>> np.char.title(c) chararray(['A1B C', '1B Ca', 'B Ca1', 'Ca1B'], dtype='|S5') R7(RAR=R RB(RPRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR7Ös cCsfti|ƒ}t|iitƒot||id|fƒSt||id|gt|ƒƒSdS(s, For each element in `a`, return a copy of the string where all characters occurring in the optional argument `deletechars` are removed, and the remaining characters have been mapped through the given translation table. Calls `str.translate` element-wise. Parameters ---------- a : array-like of str or unicode table : str of length 256 deletechars : str Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.translate R8N(RAR=R@RBRCRR RN(RPttablet deletecharsRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR8ùs cCs"ti|ƒ}t||idƒS(s^ Return an array with the elements of `a` converted to uppercase. Calls `str.upper` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array-like of str or unicode Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.upper Examples -------- >>> c = np.array(['a1b c', '1bca', 'bca1']); c array(['a1b c', '1bca', 'bca1'], dtype='|S5') >>> numpy.char.upper(c) array(['A1B C', '1BCA', 'BCA1'], dtype='|S5') R9(RAR=R RB(RPRa((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR9scCsXti|ƒ}ti|ƒ}tti|iƒƒ}t||ii|fd|fƒS(sj Return the numeric string left-filled with zeros in a string of length `width`. Calls `str.zfill` element-wise. Parameters ---------- a : array-like of str or unicode width : int Returns ------- out : ndarray Output array of str or unicode, depending on input type See also -------- str.zfill R:(RAR=R_R^RfR RBRC(RPRgRaRiRj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR:=s cCs0t|ƒtjo td‚nt|tdƒS(sî For each element in `a`, return True if there are only numeric characters in the element. Calls `unicode.isnumeric` element-wise. Numeric characters include digit characters, and all characters that have the Unicode numeric value property, e.g. ``U+2155, VULGAR FRACTION ONE FIFTH``. Parameters ---------- a : array-like of unicode Returns ------- out : ndarray Array of booleans See also -------- unicode.isnumeric s:isnumeric is only available for Unicode strings and arraysR;(RFRt TypeErrorR R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR;Xs cCs0t|ƒtjo td‚nt|tdƒS(só For each element in `a`, return True if there are only decimal characters in the element. Calls `unicode.isdecimal` element-wise. Decimal characters include digit characters, and all characters that that can be used to form decimal-radix numbers, e.g. ``U+0660, ARABIC-INDIC DIGIT ZERO``. Parameters ---------- a : array-like of unicode Returns ------- out : ndarray Array of booleans See also -------- unicode.isdecimal s:isnumeric is only available for Unicode strings and arraysR<(RFRR|R R(RP((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR<ts cBseZdZdedEddEdd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„ZdddEd„Zeiie_d„ZeidFjodd„Zn d„ZddEd„ZdEdEd„ZdEdEd„ZddEd„Zd d!„ZddEd"„ZddEd#„Z d$„Z!d%„Z"d&„Z#d'„Z$d(„Z%d)„Z&d*„Z'd+„Z(eidGjodd,„Z)n d-„Z)d.„Z*dEd/„Z+eidHjo d1„Z,ndEd2„Z-ddEd3„Z.ddEd4„Z/eidIjodd5„Z0n d6„Z0eidJjo d7„Z1neidKjodEdEd8„Z2ndEd9„Z3dEdEd:„Z4dEd;„Z5ddEd<„Z6dEd=„Z7d>„Z8d?„Z9dEd@„Z:dA„Z;dB„Z<dC„Z=dD„Z>RS(Lsê chararray(shape, itemsize=1, unicode=False, buffer=None, offset=0, strides=None, order=None) Provides a convenient view on arrays of string and unicode values. .. note:: The `chararray` class exists for backwards compatibility with Numarray, it is not recommended for new development. If one needs arrays of strings, use arrays of `dtype` `object_`, `string_` or `unicode_`, and use the free functions in the `numpy.char` module for fast vectorized string operations. Versus a regular Numpy array of type `str` or `unicode`, this class adds the following functionality: 1) values automatically have whitespace removed from the end when indexed 2) comparison operators automatically remove whitespace from the end when comparing values 3) vectorized string operations are provided as methods (e.g. `.endswith`) and infix operators (e.g. ``"+", "*", "%"``) chararrays should be created using `numpy.char.array` or `numpy.char.asarray`, rather than this constructor directly. This constructor creates the array, using `buffer` (with `offset` and `strides`) if it is not ``None``. If `buffer` is ``None``, then constructs a new array with `strides` in "C order", unless both ``len(shape) >= 2`` and ``order='Fortran'``, in which case `strides` is in "Fortran order". Parameters ---------- shape : tuple Shape of the array. itemsize : int, optional Length of each array element, in number of characters. Default is 1. unicode : bool, optional Are the array elements of type unicode (True) or string (False). Default is False. buffer : int, optional Memory address of the start of the array data. Default is None, in which case a new array is created. offset : int, optional Fixed stride displacement from the beginning of an axis? Default is 0. Needs to be >=0. strides : array_like of ints, optional Strides for the array (see `ndarray.strides` for full description). Default is None. order : {'C', 'F'}, optional The order in which the array data is stored in memory: 'C' -> "row major" order (the default), 'F' -> "column major" (Fortran) order. Examples -------- >>> charar = np.chararray((3, 3)) >>> charar[:, :] = 'abc' >>> charar chararray([['a', 'a', 'a'], ['a', 'a', 'a'], ['a', 'a', 'a']], dtype='|S1') >>> charar = np.chararray(charar.shape, itemsize=5) >>> charar[:, :] = 'abc' >>> charar chararray([['abc', 'abc', 'abc'], ['abc', 'abc', 'abc'], ['abc', 'abc', 'abc']], dtype='|S5') iitCc Cs˜|o t}nt}t|ƒ}da|djo%ti||||fd|ƒ} n4ti||||fd|d|d|d|ƒ} da| S(Nitordertbuffertoffsettstridesi(RRR_t _globalvarRJRt__new__( tsubtypetshapeROtunicodeRR€RR~RBtself((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRƒÞs      cCs,t o |iidjo td‚ndS(NtSUbcs-Can only create a chararray from string data.(R‚RBtcharR](R‡tobj((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__array_finalize__øscCs_ti||ƒ}t|iitƒo3|iƒ}t|ƒdjo d}q[|}n|S(Nit(Rt __getitem__R@RBRCRR1t_len(R‡RŠtvalttemp((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRýs   cCs t||ƒS(sg Return (self == other) element-wise. See also -------- equal (R (R‡tother((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__eq__ scCs t||ƒS(sk Return (self != other) element-wise. See also -------- not_equal (R (R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__ne__scCs t||ƒS(so Return (self >= other) element-wise. See also -------- greater_equal (R (R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__ge__ scCs t||ƒS(sl Return (self <= other) element-wise. See also -------- less_equal (R(R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__le__*scCs t||ƒS(sh Return (self > other) element-wise. See also -------- greater (R(R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__gt__4scCs t||ƒS(se Return (self < other) element-wise. See also -------- less (R(R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__lt__>scCstt||ƒƒS(s· Return (self + other), that is string concatenation, element-wise for a pair of array_likes of str or unicode. See also -------- add (R=R(R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRXHs cCsttti|ƒ|ƒƒS(s¼ Return (other + self), that is string concatenation, element-wise for a pair of array_likes of string_ or unicode_. See also -------- add (R=RRA(R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__radd__Ss cCstt||ƒƒS(s• Return (self * i), that is string multiple concatenation, element-wise. See also -------- multiply (R=R(R‡R`((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR\^s cCstt||ƒƒS(s• Return (self * i), that is string multiple concatenation, element-wise. See also -------- multiply (R=R(R‡R`((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__rmul__is cCstt||ƒƒS(sÛ Return (self % i), that is pre-Python 2.6 string formatting (iterpolation), element-wise for a pair of array_likes of string_ or unicode_. See also -------- mod (R=R(R‡R`((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRcts cCstS(N(tNotImplemented(R‡R‘((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyt__rmod__€siÿÿÿÿt quicksortcCs|iƒi|||ƒS(s Return the indices that sort the array lexicographically. For full documentation see `numpy.argsort`, for which this method is in fact merely a "thin wrapper." Examples -------- >>> c = np.array(['a1b c', '1b ca', 'b ca1', 'Ca1b'], 'S5') >>> c = c.view(np.chararray); c chararray(['a1b c', '1b ca', 'b ca1', 'Ca1b'], dtype='|S5') >>> c[c.argsort()] chararray(['1b ca', 'Ca1b', 'a1b c', 'b ca1'], dtype='|S5') (t __array__targsort(R‡taxistkindR~((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRžƒscCstt|ƒƒS(s¨ Return a copy of `self` with only the first character of each element capitalized. See also -------- char.capitalize (R=R(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR˜s iiRecCstt|||ƒƒS(sµ Return a copy of `self` with its elements centered in a string of length `width`. See also -------- center (R=R(R‡RgRh((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR¥s cCstt||ƒƒS(sµ Return a copy of `self` with its elements centered in a string of length `width`. See also -------- center (R=R(R‡Rg((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR°s cCst||||ƒS(s Returns an array with the number of non-overlapping occurrences of substring `sub` in the range [`start`, `end`]. See also -------- char.count (R(R‡RkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR»s cCst|||ƒS(sj Calls `str.decode` element-wise. See also -------- char.decode (R(R‡RnRo((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRÈs cCst|||ƒS(sj Calls `str.encode` element-wise. See also -------- char.encode (R(R‡RnRo((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRÓs cCst||||ƒS(sÅ Returns a boolean array which is `True` where the string element in `self` ends with `suffix`, otherwise `False`. See also -------- char.endswith (R(R‡RpRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRÞs icCstt||ƒƒS(s· Return a copy of each string element where all tab characters are replaced by one or more spaces. See also -------- char.expandtabs (R=R(R‡Rq((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRês cCst||||ƒS(s§ For each element, return the lowest index in the string where substring `sub` is found. See also -------- char.find (R(R‡RkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRös cCst||||ƒS(sŽ Like `find`, but raises `ValueError` when the substring is not found. See also -------- char.index (R(R‡RkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyRs cCs t|ƒS(sß Returns true for each element if all characters in the string are alphanumeric and there is at least one character, false otherwise. See also -------- char.isalnum (R(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR s cCs t|ƒS(sÝ Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. See also -------- char.isalpha (R (R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR s cCs t|ƒS(sÑ Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. See also -------- char.isdigit (R!(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR!'s cCs t|ƒS(sè Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. See also -------- char.islower (R"(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR"3s cCs t|ƒS(sä Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. See also -------- char.isspace (R#(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR#@s cCs t|ƒS(sÌ Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. See also -------- char.istitle (R$(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR$Ms cCs t|ƒS(sâ Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. See also -------- char.isupper (R%(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR%Ys cCs t||ƒS(s  Return a string which is the concatenation of the strings in the sequence `seq`. See also -------- char.join (R&(R‡Rs((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR&fs cCstt|||ƒƒS(s Return an array with the elements of `self` left-justified in a string of length `width`. See also -------- char.ljust (R=R'(R‡RgRh((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR'ss cCstt||ƒƒS(s¼ Return an array with the elements of `self` left-justified in a string of length `width`. See also -------- ljust (R=R'(R‡Rg((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR's cCstt|ƒƒS(s” Return an array with the elements of `self` converted to lowercase. See also -------- char.lower (R=R((R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR(Šs cCstt||ƒƒS(s  For each element in `self`, return a copy with the leading characters removed. See also -------- char.lstrip (R=R)(R‡Rt((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR)–s icCstt||ƒƒS(s‰ Partition each element in `self` around `sep`. See also -------- partition (R=R*(R‡Rr((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR*£scCstt||||ƒƒS(sÅ For each element in `self`, return a copy of the string with all occurrences of substring `old` replaced by `new`. See also -------- char.replace (R=R+(R‡RuRvR((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR+­s cCst||||ƒS(sñ For each element in `self`, return the highest index in the string where substring `sub` is found, such that `sub` is contained within [`start`, `end`]. See also -------- char.rfind (R,(R‡RkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR,¹s cCst||||ƒS(sž Like `rfind`, but raises `ValueError` when the substring `sub` is not found. See also -------- char.rindex (R-(R‡RkRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR-Æs cCstt|||ƒƒS(sà Return an array with the elements of `self` right-justified in a string of length `width`. See also -------- char.rjust (R=R.(R‡RgRh((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR.Ós cCstt||ƒƒS(s½ Return an array with the elements of `self` right-justified in a string of length `width`. See also -------- rjust (R=R.(R‡Rg((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR.ßs cCstt||ƒƒS(sŠ Partition each element in `self` around `sep`. See also -------- rpartition (R=R/(R‡Rr((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR/ëscCst|||ƒS(sÔ For each element in `self`, return a list of the words in the string, using `sep` as the delimiter string. See also -------- char.rsplit (R0(R‡RrRw((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR0ös cCstt||ƒƒS(s¡ For each element in `self`, return a copy with the trailing characters removed. See also -------- char.rstrip (R=R1(R‡Rt((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR1 s cCst|||ƒS(s» For each element in `self`, return a list of the words in the string, using `sep` as the delimiter string. See also -------- char.split (R2(R‡RrRw((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR2 s cCs t||ƒS(s¹ For each element in `self`, return a list of the lines in the element, breaking at line boundaries. See also -------- char.splitlines (R3(R‡Rx((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR3 s cCst||||ƒS(sÉ Returns a boolean array which is `True` where the string element in `self` starts with `prefix`, otherwise `False`. See also -------- char.startswith (R4(R‡RyRlRm((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR4& s cCstt||ƒƒS(s¬ For each element in `self`, return a copy with the leading and trailing characters removed. See also -------- char.strip (R=R5(R‡Rt((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR52 s cCstt|ƒƒS(sÌ For each element in `self`, return a copy of the string with uppercase characters converted to lowercase and vice versa. See also -------- char.swapcase (R=R6(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR6> s cCstt|ƒƒS(sô For each element in `self`, return a titlecased version of the string: words start with uppercase characters, all remaining cased characters are lowercase. See also -------- char.title (R=R7(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR7J s cCstt|||ƒƒS(sB For each element in `self`, return a copy of the string where all characters occurring in the optional argument `deletechars` are removed, and the remaining characters have been mapped through the given translation table. See also -------- char.translate (R=R8(R‡RzR{((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR8W s cCstt|ƒƒS(s” Return an array with the elements of `self` converted to uppercase. See also -------- char.upper (R=R9(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR9e s cCstt||ƒƒS(s  Return the numeric string left-filled with zeros in a string of length `width`. See also -------- char.zfill (R=R:(R‡Rg((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR:q s cCs t|ƒS(s± For each element in `self`, return True if there are only numeric characters in the element. See also -------- char.isnumeric (R;(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR;} s cCs t|ƒS(s± For each element in `self`, return True if there are only decimal characters in the element. See also -------- char.isdecimal (R<(R‡((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR<‰ s N(ii(ii(ii(ii(ii(ii(?t__name__t __module__t__doc__tFalseRJRƒR‹RR’R“R”R•R–R—RXR˜R\R™RcR›RžRRtsyst version_infoRRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R<(((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR ‘s†L                      c Cs«t|ttfƒoI|djo$t|tƒo t}qGt}n|djot|ƒ}nt|ƒ|}|oµtidjo•ti djo|i dƒ}q,t|tƒo1t i |dƒ}t i |dƒ}|i}q,t i |dƒ}t i |dƒ}|i}q<t|ƒ}n t|ƒ}t|d|d|d |d |ƒSt|ttfƒot i|ƒ}nt|tƒoUt|iitƒo?t|tƒp|itƒ}n|djo1|i}t|iitƒo|d :}qn|djo*t|iitƒo t}qFt}n|o t} nt} |dj ot i|d |ƒ}n|p?||ijp/| ot|tƒp|o/t|tƒo|i| t|ƒfƒ}n|St|tƒo7t|iitƒo!|djo|iƒ}q4n|o t} nt} |djo"t |d | d |d tƒ} n%t |d | |fd |d tƒ} | itƒS(sŸ Create a `chararray`. .. note:: This class is provided for numarray backward-compatibility. New code (not concerned with numarray compatibility) should use arrays of type string_ or unicode_ and use the free functions in :mod:`numpy.char ` for fast vectorized string operations instead. Versus a regular Numpy array of type `str` or `unicode`, this class adds the following functionality: 1) values automatically have whitespace removed from the end when indexed 2) comparison operators automatically remove whitespace from the end when comparing values 3) vectorized string operations are provided as methods (e.g. `str.endswith`) and infix operators (e.g. +, *, %) Parameters ---------- obj : array of str or unicode-like itemsize : int, optional `itemsize` is the number of characters per scalar in the resulting array. If `itemsize` is None, and `obj` is an object array or a Python list, the `itemsize` will be automatically determined. If `itemsize` is provided and `obj` is of type str or unicode, then the `obj` string will be chunked into `itemsize` pieces. copy : bool, optional If true (default), then the object is copied. Otherwise, a copy will only be made if __array__ returns a copy, if obj is a nested sequence, or if a copy is needed to satisfy any of the other requirements (`itemsize`, unicode, `order`, etc.). unicode : bool, optional When true, the resulting `chararray` can contain Unicode characters, when false only 8-bit characters. If unicode is `None` and `obj` is one of the following: - a `chararray`, - an ndarray of type `str` or `unicode` - a Python str or unicode object, then the unicode setting of the output array will be automatically determined. order : {'C', 'F', 'A'}, optional Specify the order of the array. If order is 'C' (default), then the array will be in C-contiguous order (last-index varies the fastest). If order is 'F', then the returned array will be in Fortran-contiguous order (first-index varies the fastest). If order is 'A', then the returned array may be in any order (either C-, Fortran-contiguous, or even discontiguous). iÿÿitutf_32tu1tu4tu2ROR†RR~iRBtsubokN(!R>tstrR?RJRRR¤RŽR¥t maxunicodet hexversionRRAt frombufferRtdataR tlistttupleR=RR@RBRCRtviewRORRtastypeR_tobjectRGtnarray( RŠROtcopyR†R~R…tasciitucs4tucs2RBR((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR– sr>        &       &   "$c Cst||dtd|d|ƒS(sÒ Convert the input to a `chararray`, copying the data only if necessary. Versus a regular Numpy array of type `str` or `unicode`, this class adds the following functionality: 1) values automatically have whitespace removed from the end when indexed 2) comparison operators automatically remove whitespace from the end when comparing values 3) vectorized string operations are provided as methods (e.g. `str.endswith`) and infix operators (e.g. +, *, %) Parameters ---------- obj : array of str or unicode-like itemsize : int, optional `itemsize` is the number of characters per scalar in the resulting array. If `itemsize` is None, and `obj` is an object array or a Python list, the `itemsize` will be automatically determined. If `itemsize` is provided and `obj` is of type str or unicode, then the `obj` string will be chunked into `itemsize` pieces. unicode : bool, optional When true, the resulting `chararray` can contain Unicode characters, when false only 8-bit characters. If unicode is `None` and `obj` is one of the following: - a `chararray`, - an ndarray of type `str` or 'unicode` - a Python str or unicode object, then the unicode setting of the output array will be automatically determined. order : {'C', 'F'}, optional Specify the order of the array. If order is 'C' (default), then the array will be in C-contiguous order (last-index varies the fastest). If order is 'F', then the returned array will be in Fortran-contiguous order (first-index varies the fastest). R·R†R~(RR¤(RŠROR†R~((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyR=8 s0(QR£R¥t numerictypesRRRRRRtnumericRRRR¶tnumpy.core.multiarrayR RAt__all__R‚R†R?tlenRŽRFRIRNRQR R R RRRRRRRRR¦RRJRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R<R RRR=(((s=/usr/lib64/python2.6/site-packages/numpy/core/defchararray.pyts° .                #! --"+ '          ! 0    $ +!  / " # # !   ÿÿÿ¢