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

Method split

python/ee/ee_string.py:229–245  ·  view source on GitHub ↗

Splits a string on a regular expression into a list of strings. Args: regex: A regular expression to split on. If regex is the empty string, then the input string is split into individual characters. flags: A string specifying the regular expression flag: 'i' (ignore case)

(
      self, regex: _arg_types.String, flags: _arg_types.String | None = None
  )

Source from the content-addressed store, hash-verified

227 )
228
229 def split(
230 self, regex: _arg_types.String, flags: _arg_types.String | None = None
231 ) -> ee_list.List:
232 """Splits a string on a regular expression into a list of strings.
233
234 Args:
235 regex: A regular expression to split on. If regex is the empty string,
236 then the input string is split into individual characters.
237 flags: A string specifying the regular expression flag: 'i' (ignore case)
238
239 Returns:
240 A list of strings.
241 """
242
243 return apifunction.ApiFunction.call_(
244 f'{self.name()}.split', self, regex, flags
245 )
246
247 def toLowerCase(self) -> String:
248 """Converts all of the characters in a string to lower case."""

Callers 15

_parse_dimensionsFunction · 0.80
_apply_crs_and_affineMethod · 0.80
_get_ranking_ruleFunction · 0.80
_canonicalize_parametersFunction · 0.80
split_asset_nameFunction · 0.80
convert_to_band_listFunction · 0.80
importApiMethod · 0.80

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 1

test_splitMethod · 0.64