NCBI C++ ToolKit
capitalization_string.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 
2 /* $Id: capitalization_string.hpp 93572 2021-04-30 13:48:31Z stakhovv $
3  * ===========================================================================
4  *
5  * PUBLIC DOMAIN NOTICE
6  * National Center for Biotechnology Information
7  *
8  * This software/database is a "United States Government Work" under the
9  * terms of the United States Copyright Act. It was written as part of
10  * the author's official duties as a United States Government employee and
11  * thus cannot be copyrighted. This software/database is freely available
12  * to the public for use. The National Library of Medicine and the U.S.
13  * Government have not placed any restriction on its use or reproduction.
14  *
15  * Although all reasonable efforts have been taken to ensure the accuracy
16  * and reliability of the software and data, the NLM and the U.S.
17  * Government do not and cannot warrant the performance or results that
18  * may be obtained by using this software or data. The NLM and the U.S.
19  * Government disclaim all warranties, express or implied, including
20  * warranties of performance, merchantability or fitness for any particular
21  * purpose.
22  *
23  * Please cite the author in any work or product based on this material.
24  *
25  * ===========================================================================
26  *
27  * Authors: Justin Foley
28  */
29 
30 #ifndef _OBJTOOLS_EDIT_CAPITALIZATION_STRING_HPP_
31 #define _OBJTOOLS_EDIT_CAPITALIZATION_STRING_HPP_
32 
34 
35 // Temporary forwarding header.
36 //
37 // WARNING!
38 // The functions previously defined in src/objtools/edit/capitalization_string.cpp
39 // have been moved to src/cleanup/capitalization_string.cpp.
40 // Please update your code accordingly.
41 //
42 
46 
48 
49 #define CAPITALIZATION_STRING_ALIAS_ENUM_VALUE(enum_name) \
50  static const auto enum_name = objects::enum_name;
51 
60 
61 #undef CAPITALIZATION_STRING_ALIAS_ENUM_VALUE
62 
63 
64 #define CAPITALIZATION_STRING_ALIAS_FUNCTION(function_name) \
65  NCBI_DEPRECATED static auto& function_name = objects::function_name;
66 
68 //CAPITALIZATION_STRING_ALIAS_FUNCTION(FixAbbreviationsInElement)
89 
90 #undef CAPITALIZATION_STRING_ALIAS_FUNCTION
91 
92 // Special case due to default parameter
93 NCBI_DEPRECATED static void FixAbbreviationsInElement(string& result, bool fix_end_of_sentence=true)
94 {
95  objects::FixAbbreviationsInElement(result, fix_end_of_sentence);
96 }
97 
101 
102 #endif // _OBJTOOLS_EDIT_CAPITALIZATION_STRING_HPP_
@ eCapChange_firstlower_restnochange
capitalize the first letter, the rest is not changed
@ eCapChange_capword_afterspacepunc
capitalize the first letter and letters after spaces
@ eCapChange_none
@ eCapChange_capword_afterspace
first letter is lower case, the rest is not changed
@ eCapChange_firstcap_restnochange
capitalize the first letter, the rest is lower case
@ eCapChange_firstcap_restlower
change each letter to upper case
@ eCapChange_tolower
no change
@ eCapChange_toupper
change each letter to lower case
void FixAbbreviationsInElement(string &result, bool fix_end_of_sentence=true)
static auto & FixOrdinalNumbers
static auto & RemoveFieldNameFromString
static auto & FixCapitalizationInElement
static auto & CapitalizeAfterApostrophe
static auto & FixUSAAbbreviationInAffil
static auto & CapitalizeSAfterNumber
static auto & FixKnownAbbreviationsInElement
static auto & ResetCapitalization
#define CAPITALIZATION_STRING_ALIAS_FUNCTION(function_name)
static auto & FixShortWordsInElement
static auto & FindReplaceString_CountryFixes
static auto & FixOrgNames
static auto & FixAffiliationShortWordsInElement
static auto & GetStateAbbreviation
static auto & FixupMouseStrain
static auto & FixStateAbbreviationsInCitSub
static auto & FixCapitalizationInString
static auto & FixCountryCapitalization
#define CAPITALIZATION_STRING_ALIAS_ENUM_VALUE(enum_name)
static auto & FindOrgNames
static auto & InsertMissingSpacesAfterNo
static auto & FixStateAbbreviationsInAffil
static auto & InsertMissingSpacesAfterCommas
#define NCBI_DEPRECATED
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
Definition: fix_pub.hpp:45
else result
Definition: token2.c:20
Modified on Wed Jul 17 13:18:08 2024 by modify_doxy.py rev. 669887