🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ParseFormat.hpp 文件参考
#include "AstGlobal.h"
#include "AstUtil/StringView.hpp"
#include "AstUtil/Logger.hpp"
#include "AstUtil/Color.hpp"
#include <string>

浏览该文件的源代码.

命名空间

namespace  ast
 

枚举

enum  { kDefaultFormatDoubleEps = -1 }
 

函数

errc_t ast::aParseBool (StringView str, bool &value)
 
errc_t ast::aParseInt (StringView str, int &value)
 
errc_t ast::_aParseInt_LibC_1 (StringView str, int &value)
 
errc_t ast::_aParseInt_LibC_2 (StringView sv, int &value)
 
errc_t ast::_aParseInt_LibC_3 (StringView sv, int &value)
 
errc_t ast::_aParseInt_Simple (StringView str, int &value)
 
errc_t ast::_aParseInt_StringStream (StringView str, int &value)
 
errc_t ast::_aParseInt_Scanf (StringView str, int &value)
 
errc_t ast::aParseDouble (StringView str, double &value)
 
errc_t ast::aParseFortranDouble (StringView str, double &value)
 
errc_t ast::_aParseFortranDouble_1 (StringView sv, double &value)
 
errc_t ast::_aParseFortranDouble_2 (StringView sv, double &value)
 
errc_t ast::_aParseDouble_LibC_1 (StringView str, double &value)
 
errc_t ast::_aParseDouble_LibC_2 (StringView sv, double &value)
 
errc_t ast::_aParseDouble_LibC_3 (StringView sv, double &value)
 
errc_t ast::_aParseDouble_StringStream (StringView str, double &value)
 
errc_t ast::_aParseDouble_Scanf (StringView str, double &value)
 
errc_t ast::aParseColor (StringView str, Color &value)
 
void ast::aFormatBool (bool value, std::string &str)
 
errc_t ast::aFormatInt (int value, std::string &str)
 
errc_t ast::aFormatDouble (double value, std::string &str, int precision=kDefaultFormatDoubleEps)
 
errc_t ast::aFormatColor (Color value, std::string &str)
 
A_ALWAYS_INLINE std::string ast::aFormatBool (bool value)
 
A_ALWAYS_INLINE std::string ast::aFormatInt (int value)
 
A_ALWAYS_INLINE std::string ast::aFormatDouble (double value, int precision=kDefaultFormatDoubleEps)
 
A_ALWAYS_INLINE std::string ast::aFormatColor (Color value)
 
A_ALWAYS_INLINE bool ast::aParseBool (StringView str)
 
A_ALWAYS_INLINE int ast::aParseInt (StringView str)
 
A_ALWAYS_INLINE double ast::aParseDouble (StringView str)
 
A_ALWAYS_INLINE double ast::aParseFortranDouble (StringView str)
 
A_ALWAYS_INLINE Color ast::aParseColor (StringView str)
 
A_ALWAYS_INLINE errc_t ast::aFormatScalar (double value, std::string &str)
 
A_ALWAYS_INLINE errc_t ast::aFormatScalar (int value, std::string &str)
 
A_ALWAYS_INLINE void ast::aFormatScalar (bool value, std::string &str)
 
A_ALWAYS_INLINE std::string ast::aFormatScalar (double value)
 
A_ALWAYS_INLINE std::string ast::aFormatScalar (int value)
 
A_ALWAYS_INLINE std::string ast::aFormatScalar (bool value)
 

详细描述

解析和格式化字符串


作者
axel
日期
2025-12-10

ast项目(https://github.com/space-ast/ast) 本项目基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:

http://www.apache.org/licenses/LICENSE-2.0

重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。