MCPcopy
hub / github.com/google/earthengine-api / rindex

Method rindex

python/ee/ee_string.py:196–205  ·  view source on GitHub ↗

Searches a string for the last occurrence of a substring. Args: pattern: The string to find. Returns: The index of the first match or -1 if no match.

(self, pattern: _arg_types.String)

Source from the content-addressed store, hash-verified

194 )
195
196 def rindex(self, pattern: _arg_types.String) -> ee_number.Number:
197 """Searches a string for the last occurrence of a substring.
198
199 Args:
200 pattern: The string to find.
201
202 Returns:
203 The index of the first match or -1 if no match.
204 """
205 return apifunction.ApiFunction.call_(f'{self.name()}.rindex', self, pattern)
206
207 def slice(
208 self, start: _arg_types.Integer, end: _arg_types.Integer | None = None

Callers 1

test_rindexMethod · 0.80

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 1

test_rindexMethod · 0.64