jaulib v1.4.1-14-g15926ba
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::cfmt::Result Class Reference

#include <string_cfmt.hpp>

Collaboration diagram for jau::cfmt::Result:

Public Member Functions

constexpr Result (std::string_view f, FormatOpts o, size_t pos, ssize_t acount, int line, bool ok)
 
constexpr ssize_t argumentCount () const noexcept
 Arguments processed.
 
constexpr int errorLine () const noexcept
 error line of implementation source code or zero if success (error analysis)
 
constexpr const std::string_view & fmt () const noexcept
 format string_view
 
constexpr const FormatOptsopts () const noexcept
 Last argument FormatOpts (error analysis)
 
constexpr size_t pos () const noexcept
 Position of next fmt character to be read (error analysis)
 
constexpr bool success () const noexcept
 true if operation was successful, otherwise indicates error
 
std::string toString () const
 

Detailed Description

Constructor & Destructor Documentation

◆ Result()

jau::cfmt::Result::Result ( std::string_view f,
FormatOpts o,
size_t pos,
ssize_t acount,
int line,
bool ok )
inlineconstexpr

Definition at line 515 of file string_cfmt.hpp.

Member Function Documentation

◆ success()

bool jau::cfmt::Result::success ( ) const
inlineconstexprnoexcept

true if operation was successful, otherwise indicates error

Examples
test_stringfmt_check.cpp, and test_stringfmt_format.cpp.

Definition at line 519 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ argumentCount()

ssize_t jau::cfmt::Result::argumentCount ( ) const
inlineconstexprnoexcept

Arguments processed.

Examples
test_stringfmt_check.cpp, test_stringfmt_format.cpp, and test_stringfmt_perf.cpp.

Definition at line 522 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ fmt()

const std::string_view & jau::cfmt::Result::fmt ( ) const
inlineconstexprnoexcept

format string_view

Definition at line 525 of file string_cfmt.hpp.

◆ opts()

const FormatOpts & jau::cfmt::Result::opts ( ) const
inlineconstexprnoexcept

Last argument FormatOpts (error analysis)

Examples
test_stringfmt_format.cpp.

Definition at line 528 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ pos()

size_t jau::cfmt::Result::pos ( ) const
inlineconstexprnoexcept

Position of next fmt character to be read (error analysis)

Definition at line 530 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ errorLine()

int jau::cfmt::Result::errorLine ( ) const
inlineconstexprnoexcept

error line of implementation source code or zero if success (error analysis)

Definition at line 532 of file string_cfmt.hpp.

◆ toString()

std::string jau::cfmt::Result::toString ( ) const
inline
Examples
test_stringfmt_check.cpp.

Definition at line 534 of file string_cfmt.hpp.

Here is the caller graph for this function:

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