ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
stringutils.h
1/******************************************************************************
2* Copyright (c) ATTX LLC 2024. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, LLC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, LLC.
15******************************************************************************/
16#ifndef UTILS_STRINGUTILS_H
17#define UTILS_STRINGUTILS_H
18
19#include <string>
20
21namespace modelspace {
22 /// @brief Function to convert a string to all upper case
23 /// @param input String to be converted
24 /// @return String converted to all upper case
25 std::string toUpper(const std::string &input);
26
27 /// @brief Function to convert a string to all lower case
28 /// @param input String to be converted
29 /// @return String converted to all lower case
30 std::string toLower(const std::string &input);
31
32 /// @brief Function to compare two strings independent of case
33 /// @param in_a The first string to compare
34 /// @param in_b The second string to compare
35 /// @return True if strings equal in case-independent fashion. False otherwise
36 bool caseInsensitiveEqual(const std::string &in_a, const std::string &in_b);
37}
38
39#endif
Class to propagate CR3BP dynamics in characteristic units.
Definition ConfigurationWriter.cpp:18
std::string toLower(const std::string &input)
Function to convert a string to all lower case.
Definition stringutils.cpp:31
bool caseInsensitiveEqual(const std::string &in_a, const std::string &in_b)
Function to compare two strings independent of case.
Definition stringutils.cpp:41
std::string toUpper(const std::string &input)
Function to convert a string to all upper case.
Definition stringutils.cpp:21