MCPcopy
hub / github.com/reflex-dev/reflex / split

Method split

packages/reflex-base/src/reflex_base/vars/sequence.py:772–783  ·  view source on GitHub ↗

Split the string. Args: separator: The separator. Returns: The string split operation.

(self, separator: StringVar | str = "")

Source from the content-addressed store, hash-verified

770 return string_contains_operation(self, other)
771
772 def split(self, separator: StringVar | str = "") -> ArrayVar[list[str]]:
773 """Split the string.
774
775 Args:
776 separator: The separator.
777
778 Returns:
779 The string split operation.
780 """
781 if not isinstance(separator, (StringVar, str)):
782 raise_unsupported_operand_types("split", (type(self), type(separator)))
783 return string_split_operation(self, separator)
784
785 def startswith(self, prefix: StringVar | str) -> BooleanVar:
786 """Check if the string starts with a prefix.

Callers 15

__mul__Method · 0.95
__rmul__Method · 0.95
__getitem__Method · 0.95
lengthMethod · 0.95
reversedMethod · 0.95
createMethod · 0.80
check_requirementsFunction · 0.80
extract_subdomainFunction · 0.80
process_envsFunction · 0.80
interpret_env_var_valueFunction · 0.80
_paths_from_env_filesFunction · 0.80
_get_hook_depsFunction · 0.80

Calls 2

string_split_operationFunction · 0.85

Tested by 15

test_clear_filesFunction · 0.64
test_upload_chunk_fileFunction · 0.64
indexFunction · 0.64
test_app_wrap_priorityFunction · 0.64
test_string_operationsFunction · 0.64
test_base_class_varsFunction · 0.64
test_state_proxyFunction · 0.64