# 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. ### \ Diff Base classes: - MetaSystem:{base-0.90}:#Native Methods: - \ addFile1 (string fileName) - \ addFile2 (string fileName) - \ getSimplified () - \ getUnified () - \ addBuffer1 (System::MemoryBuffer memoryBuffer) - \ addBuffer2 (System::MemoryBuffer memoryBuffer) - \ addString1 (string stringBuffer) - \ addString2 (string stringBuffer) ### \ DiffFiles(string f1, string f2) Get difference from two file (unified patch). ### \ DiffStrings(string s1, string s2) Get difference from two string (unified patch). ### \ NodeAddLocalName(Data::String name, Data::String value) Add local name to the node's name. - name : Node's name. - value : Node's local name. ### \ NodeAddNameSpace(Data::String name, Data::String value) Add namespace to the node's name. - name : Node's name. - value : Node's namespace fragment. ### \ NodeGetLocalAndSelfName(Data::String name) Get local and self name from the node's name. - name : Node's name. - @return: Local name string. ### \ NodeGetLocalName(Data::String name) Get local name from the node's name. - name : Node's name. - @return: Local name string. ### \ NodeGetNameAndWorkSpace(Data::String name) Get namespace and workspace from the node's name. - name : Node's name. - @return: Namespace string with workspace. ### \ NodeGetNameSpace(Data::String name) Get namespace from the node's name. - name : Node's name. - @return: Namespace string. ### \ NodeGetSelfName(Data::String name) Get self name from the node's name. - name : Node's name. - @return: Self name string. ### \ NodeGetVersion(Data::String name) Get version number from the node's name. - name : Node's name. - @return: Workspace string. ### \ NodeGetWorkSpace(Data::String name) Get workspace from the node's name. - name : Node's name. - @return: Workspace string. ### \ NodeSetLocalName(Data::String name, Data::String value) Set node's local name. - name : Node's name. - value : Node's local name. ### \ 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. ### \ NodeSetNameSpace(Data::String name, Data::String value) Set namespace in the node's name. - name : Node's name. - value : Node's namespace. ### \ 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. ### \ NodeSetVersion(Data::String name, Data::String value) Set version string to full type name. - name : Node's name. - value : Node's version number. ### \ NodeSetWorkSpace(Data::String name, Data::String value) Set workspace in the node's name. - name : Node's name. - value : Node's workspace. ### \ StringToVector(Data::String value) Convert string to vectors. ### \ VectorToString(Store::Vector vector) Convert vector to string. ### \ chomp(Data::String value) Replace end lines with space characters. - value : Input string value. ### \ 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. ### \ concat(Data::String value1, Data::String value2) Concat strings. - value1 : Input string value #1. - value2 : Input string value #2. ### \ find(Data::String value, Data::String list, uint64 pos) Find substring in a string. - value : Input string value. - list : Substring. - @return: Result position. ### \ 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. ### \ 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. ### \ 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. ### \ 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. ### \ 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. ### \ lowcase(Data::String value) Lowcase string's characters. - value : Input string value. ### \ lowcaseFirst(Data::String value) Lowcase string's first letter. - value : Input string value. ### \ lstrip(Data::String value) Strip string's begin. - value : Input string value. ### \ 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. ### \ 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. ### \ rstrip(Data::String value) Strip string's end. - value : Input string value. ### \ strip(Data::String value) Strip string's begin and end. - value : Input string value. ### \ 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. ### \ upcase(Data::String value) Upcase string's characters. - value : Input string value. ### \ 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. ### \ Store::#MapString Node representation of the map store. Base classes: - MetaSystem:{base-0.90}:#Store Methods: - \ index (string key) Index operator method. - key : Index key. - @return: Referenced result node or Data::Null instance. - \ add (string key, Node node) Add a new item. - key : Index key. - node : Source node. - \ find (string key) Find by key. - key : Index key. - @return: Result iterator (cloned). - \ get (string key) Get item by key. - key : Index key. - @return: Result item (cloned). - \ exists (string key) Check key. - key : Index key. - @return: True if the key is exists. - \ erase (Store::MapStringIterator iter) Erase item by iterator. - iter : Iterator points to the target. - \ erase (string key) Erase item by key. - key : Index key. - \ createFullNode () Create full node version. - \ begin () Get 'begin' iterator. - \ end () Get 'end' iterator. ### \ Store::#MapStringIterator Node representation of the map iterator. Base classes: - MetaSystem:{base-0.90}:#Iterator Methods: - \ getKey () Get key. - \ first () Get key. - \ second () Get value. - \ get () Get node from the iterator. ### \ Store::#VectorString Node representation of the vector store. Base classes: - MetaSystem:{base-0.90}:#Store Methods: - \ index (uint64 key) Context index. - key : Index number. - @return: Referenced node result. - \ add (Node item) Add item. - item : Source item. - \ erase (uint64 key) Erase item on position. - key : Position key. - \ erase (Store::VectorStringIterator iter) Erase item on position. - iter : Iterator instance. - \ createFullNode () Create full node version. - \ begin () Get 'begin' iterator. - \ end () Get 'end' iterator. ### \ Store::#VectorStringIterator Node representation of the vector iterator. Base classes: - MetaSystem:{base-0.90}:#Iterator Methods: - \ get () Get node from the iterator.