Function string

Summary

#include <include/flecs/addons/cpp/utils/string.hpp>

(1) explicit string()

(2) explicit string(char *str)

(3) string(string &&str)

(4) string(const string &str)=delete

(5) string(const char *str)

Function overload

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

explicit string()

Description

No description yet.

Source

Lines 11-14 in include/flecs/addons/cpp/utils/string.hpp.

explicit string() 
    : m_str(nullptr)
    , m_const_str("")
    , m_length(0) { }

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

explicit string(char *str)

Description

No description yet.

Source

Lines 16-19 in include/flecs/addons/cpp/utils/string.hpp.

explicit string(char *str) 
    : m_str(str)
    , m_const_str(str ? str : "")
    , m_length(str ? ecs_os_strlen(str) : 0) { }

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

string(string &&str)

Description

No description yet.

Source

Lines 31-37 in include/flecs/addons/cpp/utils/string.hpp.

string(string&& str) {
    ecs_os_free(m_str);
    m_str = str.m_str;
    m_const_str = str.m_const_str;
    m_length = str.m_length;
    str.m_str = nullptr;
}

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

string(const string &str)=delete

Description

No description yet.

Source

Line 54 in include/flecs/addons/cpp/utils/string.hpp.

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

string(const char *str)

Description

No description yet.

Source

Lines 121-124 in include/flecs/addons/cpp/utils/string.hpp.

string(const char *str)
    : m_str(nullptr)
    , m_const_str(str ? str : "")
    , m_length(str ? ecs_os_strlen(str) : 0) { }