This is the
string type of ThingsDB. A value of type
str should contain valid UTF-8 characters. This
is not guaranteed but rather depends on MessagePack to pack data correctly.
There is an is_utf8 function which can be used to test a
str value for valid UTF-8
data and it is also possible to create an
utf8 property on a custom Type which only allows strings
with valid UTF-8 data.
|Determine if a given string is a substring of a string.
|Determine if a string ends with characters given by another string.
|Return the length of a string.
|Return a new string in which all case-based characters are in lower case.
|Returns a new string in witch occurrences of a given substring or regular expression match are replaced with another substring.
|Split a string into a new list with substrings.
|Determine if a string starts with characters given by another string.
|Returns a new string with whitespace characters removed from both the start and end of a string.
|Returns a new string with whitespace characters removed from the start of a string.
|Returns a new string with whitespace characters removed from the the end of a string.
|Return a new string in which all case-based characters are in upper case.
This code creates a raw property greet to collection stuff:
.greet = 'Hello world!!';