Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::StrpTimeFormat Struct Reference
Inheritance diagram for duckdb::StrpTimeFormat:
Collaboration diagram for duckdb::StrpTimeFormat:

Classes

struct  ParseResult
 Type-safe parsing argument. More...
 

Public Member Functions

bool operator!= (const StrpTimeFormat &other) const
 
DUCKDB_API bool Parse (string_t str, ParseResult &result, bool strict=false) const
 
DUCKDB_API bool Parse (const char *data, size_t size, ParseResult &result, bool strict=false) const
 
DUCKDB_API bool TryParseDate (const char *data, size_t size, date_t &result) const
 
DUCKDB_API bool TryParseTimestamp (const char *data, size_t size, timestamp_t &result) const
 
DUCKDB_API bool TryParseTimestampNS (const char *data, size_t size, timestamp_ns_t &result) const
 
DUCKDB_API bool TryParseDate (string_t str, date_t &result, string &error_message) const
 
DUCKDB_API bool TryParseTime (string_t str, dtime_t &result, string &error_message) const
 
DUCKDB_API bool TryParseTimestamp (string_t str, timestamp_t &result, string &error_message) const
 
DUCKDB_API bool TryParseTimestampNS (string_t str, timestamp_ns_t &result, string &error_message) const
 
void Serialize (Serializer &serializer) const
 
- Public Member Functions inherited from duckdb::StrTimeFormat
bool HasFormatSpecifier (StrTimeSpecifier s) const
 
DUCKDB_API bool Empty () const
 If the string format is empty.
 

Static Public Member Functions

static DUCKDB_API ParseResult Parse (const string &format, const string &text)
 
static DUCKDB_API bool TryParse (const string &format, const string &text, ParseResult &result)
 
static StrpTimeFormat Deserialize (Deserializer &deserializer)
 
- Static Public Member Functions inherited from duckdb::StrTimeFormat
static DUCKDB_API string ParseFormatSpecifier (const string &format_string, StrTimeFormat &format)
 

Protected Member Functions

DUCKDB_API void AddFormatSpecifier (string preceding_literal, StrTimeSpecifier specifier) override
 
int NumericSpecifierWidth (StrTimeSpecifier specifier)
 
int32_t TryParseCollection (const char *data, idx_t &pos, idx_t size, const string_t collection[], idx_t collection_count) const
 
- Protected Member Functions inherited from duckdb::StrTimeFormat
void AddLiteral (string literal)
 

Static Protected Member Functions

static string FormatStrpTimeError (const string &input, optional_idx position)
 

Private Member Functions

 StrpTimeFormat (const string &format_string)
 

Additional Inherited Members

- Public Attributes inherited from duckdb::StrTimeFormat
string format_specifier
 The full format specifier, for error messages.
 
- Protected Attributes inherited from duckdb::StrTimeFormat
vector< StrTimeSpecifier > specifiers
 The format specifiers.
 
vector< string > literals
 
idx_t constant_size = 0
 The constant size that appears in the format string.
 
vector< intnumeric_width
 The max numeric width of the specifier (if it is parsed as a number), or -1 if it is not a number.
 

Member Function Documentation

◆ operator!=()

bool duckdb::StrpTimeFormat::operator!= ( const StrpTimeFormat other) const
inline
46187 {
46188 return format_specifier != other.format_specifier;
46189 }
string format_specifier
The full format specifier, for error messages.
Definition duckdb.hpp:46098

◆ AddFormatSpecifier()

DUCKDB_API void duckdb::StrpTimeFormat::AddFormatSpecifier ( string  preceding_literal,
StrTimeSpecifier  specifier 
)
overrideprotectedvirtual

Reimplemented from duckdb::StrTimeFormat.


The documentation for this struct was generated from the following file: