Checks for string equality with a given object. Args: target: The second object to check for equality. Returns: True if the target is a string and is lexicographically equal to the reference, or false otherwise.
(self, target: _arg_types.String)
| 127 | return apifunction.ApiFunction.call_('String.encodeJSON', object) |
| 128 | |
| 129 | def equals(self, target: _arg_types.String) -> computedobject.ComputedObject: |
| 130 | """Checks for string equality with a given object. |
| 131 | |
| 132 | Args: |
| 133 | target: The second object to check for equality. |
| 134 | |
| 135 | Returns: |
| 136 | True if the target is a string and is lexicographically equal to the |
| 137 | reference, or false otherwise. |
| 138 | """ |
| 139 | return apifunction.ApiFunction.call_(f'{self.name()}.equals', self, target) |
| 140 | |
| 141 | def index(self, pattern: _arg_types.String) -> ee_number.Number: |
| 142 | """Searches a string for the first occurrence of a substring. |