Rev | Line | |
---|
[157] | 1 | .. _api-zoo-string: |
---|
| 2 | |
---|
| 3 | ZOO.String |
---|
| 4 | ========== |
---|
| 5 | |
---|
| 6 | Contains convenience methods for string manipulation: |
---|
| 7 | |
---|
| 8 | Functions and Properties |
---|
| 9 | ------------------------ |
---|
| 10 | |
---|
| 11 | .. list-table:: |
---|
| 12 | :widths: 30 50 |
---|
| 13 | :header-rows: 1 |
---|
| 14 | |
---|
| 15 | * - NAME |
---|
| 16 | - DESCRIPTION |
---|
| 17 | * - :ref:`startsWith <startsWith>` |
---|
| 18 | - Test whether a string starts with another string. |
---|
| 19 | * - :ref:`contains <contains>` |
---|
| 20 | - Test whether a string contains another string. |
---|
| 21 | * - :ref:`trim <trim>` |
---|
| 22 | - Removes leading and trailing whitespace characters from a string. |
---|
| 23 | * - :ref:`camelize <camelize>` |
---|
| 24 | - Camel-case a hyphenated string. |
---|
| 25 | * - :ref:`tokenRegEx <tokenRegEx>` |
---|
| 26 | - Used to find tokens in a string. |
---|
| 27 | * - :ref:`numberRegEx <numberRegEx>` |
---|
| 28 | - Used to test strings as numbers. |
---|
| 29 | * - :ref:`isNumeric <isNumeric>` |
---|
| 30 | - Determine whether a string contains only a numeric value. |
---|
| 31 | * - :ref:`numericIf <numericIf>` |
---|
| 32 | - Converts a string that appears to be a numeric value into a number. |
---|
| 33 | |
---|
| 34 | .. _startsWith: |
---|
| 35 | |
---|
| 36 | startsWith |
---|
| 37 | Test whether a string starts with another string. |
---|
| 38 | |
---|
| 39 | .. _contains: |
---|
| 40 | |
---|
| 41 | contains |
---|
| 42 | Test whether a string contains another string. |
---|
| 43 | |
---|
| 44 | .. _trim: |
---|
| 45 | |
---|
| 46 | trim |
---|
| 47 | Removes leading and trailing whitespace characters from a string. |
---|
| 48 | |
---|
| 49 | .. _camelize: |
---|
| 50 | |
---|
| 51 | camelize |
---|
| 52 | Camel-case a hyphenated string. |
---|
| 53 | |
---|
| 54 | .. _tokenRegEx: |
---|
| 55 | |
---|
| 56 | tokenRegEx |
---|
| 57 | Used to find tokens in a string. |
---|
| 58 | |
---|
| 59 | .. _numberRegEx: |
---|
| 60 | |
---|
| 61 | numberRegEx |
---|
| 62 | Used to test strings as numbers. |
---|
| 63 | |
---|
| 64 | .. _isNumeric: |
---|
| 65 | |
---|
| 66 | isNumeric |
---|
| 67 | Determine whether a string contains only a numeric value. |
---|
| 68 | |
---|
| 69 | .. _numericIf: |
---|
| 70 | |
---|
| 71 | numericIf |
---|
| 72 | Converts a string that appears to be a numeric value into a number. |
---|
Note: See
TracBrowser
for help on using the repository browser.