OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
marvin.cpp File Reference
#include "marvin.h"
#include <charconv>
#include <cstdint>
#include <cctype>
#include "utils/string_frm.h"
#include "world/objects/npc.h"
#include "world/objects/item.h"
#include "world/triggers/abstracttrigger.h"
#include "camera.h"
#include "gothic.h"

Go to the source code of this file.

Functions

static bool startsWith (std::string_view str, std::string_view needle)
 
static bool compareNoCase (std::string_view sa, std::string_view sb)
 
template<class T >
static bool fromString (std::string_view str, T &t)
 
static bool fromString (std::string_view str, float &t)
 

Function Documentation

◆ compareNoCase()

static bool compareNoCase ( std::string_view  sa,
std::string_view  sb 
)
static

Definition at line 26 of file marvin.cpp.

◆ fromString() [1/2]

static bool fromString ( std::string_view  str,
float &  t 
)
static

Definition at line 46 of file marvin.cpp.

◆ fromString() [2/2]

template<class T >
static bool fromString ( std::string_view  str,
T &  t 
)
static

Definition at line 39 of file marvin.cpp.

◆ startsWith()

static bool startsWith ( std::string_view  str,
std::string_view  needle 
)
static

Definition at line 14 of file marvin.cpp.