Meta/System string package

Library documentation for Meta/System string package.

Workspaces:

  • MetaSystem::String:{main}:

  • MetaSystem:{string-0.90}:

MetaSystem::String:{main}:

Library documentation for MetaSystem::String:{main}: workspace.

<repr> Diff

Base classes:

  • MetaSystem:{base-0.90}:#Native

Methods:

  • <mth> addFile1 (string fileName)

  • <mth> addFile2 (string fileName)

  • <mth> getSimplified ()

  • <mth> getUnified ()

  • <mth> addBuffer1 (System::MemoryBuffer memoryBuffer)

  • <mth> addBuffer2 (System::MemoryBuffer memoryBuffer)

  • <mth> addString1 (string stringBuffer)

  • <mth> addString2 (string stringBuffer)

<fn> DiffFiles(string f1, string f2)

Get difference from two file (unified patch).

<fn> DiffStrings(string s1, string s2)

Get difference from two string (unified patch).

<fn> NodeAddLocalName(Data::String name, Data::String value)

Add local name to the node’s name.

  • name : Node’s name.

  • value : Node’s local name.

<fn> NodeAddNameSpace(Data::String name, Data::String value)

Add namespace to the node’s name.

  • name : Node’s name.

  • value : Node’s namespace fragment.

<fn> NodeGetLocalAndSelfName(Data::String name)

Get local and self name from the node’s name.

  • name : Node’s name.

  • @return: Local name string.

<fn> NodeGetLocalName(Data::String name)

Get local name from the node’s name.

  • name : Node’s name.

  • @return: Local name string.

<fn> NodeGetNameAndWorkSpace(Data::String name)

Get namespace and workspace from the node’s name.

  • name : Node’s name.

  • @return: Namespace string with workspace.

<fn> NodeGetNameSpace(Data::String name)

Get namespace from the node’s name.

  • name : Node’s name.

  • @return: Namespace string.

<fn> NodeGetSelfName(Data::String name)

Get self name from the node’s name.

  • name : Node’s name.

  • @return: Self name string.

<fn> NodeGetVersion(Data::String name)

Get version number from the node’s name.

  • name : Node’s name.

  • @return: Workspace string.

<fn> NodeGetWorkSpace(Data::String name)

Get workspace from the node’s name.

  • name : Node’s name.

  • @return: Workspace string.

<fn> NodeSetLocalName(Data::String name, Data::String value)

Set node’s local name.

  • name : Node’s name.

  • value : Node’s local name.

<fn> NodeSetNameAndWorkSpace(Data::String name, Data::String value)

Set namespace and workspace in the node’s name.

  • name : Node’s name.

  • value : Node’s name and workspace.

<fn> NodeSetNameSpace(Data::String name, Data::String value)

Set namespace in the node’s name.

  • name : Node’s name.

  • value : Node’s namespace.

<fn> NodeSetSelfName(Data::String name, Data::String value)

Set self name in the node’s name.

  • name : Node’s name.

  • value : Node’s self name.

  • text_ : Inserted text.

<fn> NodeSetVersion(Data::String name, Data::String value)

Set version string to full type name.

  • name : Node’s name.

  • value : Node’s version number.

<fn> NodeSetWorkSpace(Data::String name, Data::String value)

Set workspace in the node’s name.

  • name : Node’s name.

  • value : Node’s workspace.

<fn> StringToVector(Data::String value)

Convert string to vectors.

<fn> VectorToString(Store::Vector vector)

Convert vector to string.

<fn> chomp(Data::String value)

Replace end lines with space characters.

  • value : Input string value.

<fn> compare(Data::String value1, Data::String value2, uint64 start, uint64 len)

Compare substrings.

  • value1 : Input string value #1.

  • value2 : Input string value #2.

  • start : Starting position.

  • len : Lenght of the substring.

  • @return: As std::strcmp(), returns zero if equals.

<fn> concat(Data::String value1, Data::String value2)

Concat strings.

  • value1 : Input string value #1.

  • value2 : Input string value #2.

<fn> find(Data::String value, Data::String list, uint64 pos)

Find substring in a string.

  • value : Input string value.

  • list : Substring.

  • @return: Result position.

<fn> findFirstNotOf(Data::String value, Data::String list, uint64 pos)

Find first not matched character from the parameter string.

  • value : Input string value.

  • list : Substring.

  • pos : Starting position.

  • @return: Result position.

<fn> findFirstOf(Data::String value, Data::String list, uint64 pos)

Find first character from the parameter string.

  • value : Input string value.

  • list : Substring.

  • pos : Starting position.

  • @return: Result position.

<fn> findLastNotOf(Data::String value, Data::String list, uint64 pos)

Find last not matched character from the parameter string.

  • value : Input string value.

  • list : Substring.

  • pos : Starting position.

  • @return: Result position.

<fn> findLastOf(Data::String value, Data::String list, uint64 pos)

Find last character from the parameter string.

  • value : Input string value.

  • list : Substring.

  • pos : Starting position.

  • @return: Result position.

<fn> insert(Data::String value1, Data::String value2, uint64 start)

Insert substring into a position.

  • value1 : Input string value #1.

  • value2 : Input string value #2.

  • start : Starting position.

<fn> lowcase(Data::String value)

Lowcase string’s characters.

  • value : Input string value.

<fn> lowcaseFirst(Data::String value)

Lowcase string’s first letter.

  • value : Input string value.

<fn> lstrip(Data::String value)

Strip string’s begin.

  • value : Input string value.

<fn> replace(Data::String value1, Data::String value2, uint64 start, uint64 len)

Replace substring with an another ones.

  • value1 : Input string value #1.

  • value2 : Input string value #2.

  • start : Starting position.

  • len : Lenght of the substring.

<fn> rfind(Data::String value, Data::String list, uint64 pos)

Find substring in a string in reverse order.

  • value : Input string value.

  • list : Substring.

  • @return: Result position.

<fn> rstrip(Data::String value)

Strip string’s end.

  • value : Input string value.

<fn> strip(Data::String value)

Strip string’s begin and end.

  • value : Input string value.

<fn> substr(Data::String value, uint64 start, uint64 len)

Get sub string.

  • value : Input string value.

  • start : Start position.

  • len : Lenght of the substring.

  • @return: Result string.

<fn> upcase(Data::String value)

Upcase string’s characters.

  • value : Input string value.

<fn> upcaseFirst(Data::String value)

Upcase string’s first letter.

  • value : Input string value.

MetaSystem:{string-0.90}:

Library documentation for MetaSystem:{string-0.90}: workspace.

<repr> Store::#MapString

Node representation of the map store.

Base classes:

  • MetaSystem:{base-0.90}:#Store

Methods:

  • <mth> index (string key)

    Index operator method.

    • key : Index key.

    • @return: Referenced result node or Data::Null instance.

  • <mth> add (string key, Node node)

    Add a new item.

    • key : Index key.

    • node : Source node.

  • <mth> find (string key)

    Find by key.

    • key : Index key.

    • @return: Result iterator (cloned).

  • <mth> get (string key)

    Get item by key.

    • key : Index key.

    • @return: Result item (cloned).

  • <mth> exists (string key)

    Check key.

    • key : Index key.

    • @return: True if the key is exists.

  • <mth> erase (Store::MapStringIterator iter)

    Erase item by iterator.

    • iter : Iterator points to the target.

  • <mth> erase (string key)

    Erase item by key.

    • key : Index key.

  • <mth> createFullNode ()

    Create full node version.

  • <mth> begin ()

    Get «begin» iterator.

  • <mth> end ()

    Get «end» iterator.

<repr> Store::#MapStringIterator

Node representation of the map iterator.

Base classes:

  • MetaSystem:{base-0.90}:#Iterator

Methods:

  • <mth> getKey ()

    Get key.

  • <mth> first ()

    Get key.

  • <mth> second ()

    Get value.

  • <mth> get ()

    Get node from the iterator.

<repr> Store::#VectorString

Node representation of the vector store.

Base classes:

  • MetaSystem:{base-0.90}:#Store

Methods:

  • <mth> index (uint64 key)

    Context index.

    • key : Index number.

    • @return: Referenced node result.

  • <mth> add (Node item)

    Add item.

    • item : Source item.

  • <mth> erase (uint64 key)

    Erase item on position.

    • key : Position key.

  • <mth> erase (Store::VectorStringIterator iter)

    Erase item on position.

    • iter : Iterator instance.

  • <mth> createFullNode ()

    Create full node version.

  • <mth> begin ()

    Get «begin» iterator.

  • <mth> end ()

    Get «end» iterator.

<repr> Store::#VectorStringIterator

Node representation of the vector iterator.

Base classes:

  • MetaSystem:{base-0.90}:#Iterator

Methods:

  • <mth> get ()

    Get node from the iterator.