Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
StrA.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_StrA_H
6 #define _INC_StrA_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "StrConst.h"
12 #include "HResult.h"
13 #include "cUnitTestDecl.h"
14 
15 namespace Gray
16 {
17  DECLARE_INTERFACE(IIniBaseGetter);
18 
19  struct GRAYCORE_LINK StrA // : public StrT // static
20  {
23 
24  static bool GRAYCALL IsBoolTrue(const char* pszStr, bool bHead = false);
25  static bool GRAYCALL IsBoolFalse(const char* pszStr, bool bHead = false);
26 
27  static const char* GRAYCALL GetArticleAndSpace(const char* pszWords);
28  static bool GRAYCALL IsPlural(const char* pszWord);
29  static INT_PTR GRAYCALL GetFixedIntRef(const char*& rpszExp, int nPlaces);
30 
31  //*****************************************************************************
32  // String Modifying
33 
34  static StrLen_t GRAYCALL MakeNamedBitmask(char* pszOut, StrLen_t iOutSizeMax, UINT dwFlags, const char** ppszNames, ITERATE_t iMaxNames, char chSep = '\0');
35 
36  static StrLen_t GRAYCALL BlockReplacement(char* pszOut, StrLen_t iOutSizeMax, const char* pszInp, IIniBaseGetter* pBlockReq, bool bRecursing = false);
38  };
39 };
40 
41 #endif
#define GRAYCORE_LINK
Definition: GrayCore.h:47
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define UNITTEST_FRIEND(n)
Define this in the class body to be unit tested. Allow the unit test to access private/protected stuf...
Definition: cUnitTestDecl.h:17
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
DECLARE_INTERFACE(IRandomNoise)
int ITERATE_t
like size_t but signed
Definition: Index.h:28
Definition: cIniBase.h:28
Definition: StrA.h:20