Go to the source code of this file.
Go to the SVN repository for this file.
◆ CLEAN_AFFIL_MEMBER
| #define CLEAN_AFFIL_MEMBER |
( |
|
x | ) |
|
Value: if (std.IsSet##x()) { \
string&
val = std.Set##x(); \
std.Reset##x(); \
rval = true; \
} \
}
static bool CleanAndCompressJunk(string &str)
◆ EXTRACTSUFFIXFROMINITIALS
| #define EXTRACTSUFFIXFROMINITIALS |
( |
|
OLD, |
|
|
|
NEW |
|
) |
| |
Value:
initials.resize( initials.length() - strlen(OLD) ); \
name.SetSuffix(NEW); \
return; \
}
static bool EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)
Check if a string ends with a specified suffix value.
◆ TStringPair
◆ TSuffixMap
◆ CleanAndCompressJunk()
◆ DEFINE_STATIC_ARRAY_MAP_WITH_COPY()
◆ bad_sfxs
Initial value:= {
{ "1d" , "I" },
{ "1st" , "I" },
{ "2d" , "II" },
{ "2nd" , "II" },
{ "3d" , "III" },
{ "3rd" , "III" },
{ "4th" , "IV" },
{ "5th" , "V" },
{ "6th" , "VI" },
{ "II." , "II" },
{ "III.", "III" },
{ "IV." , "IV" },
{ "Jr" , "Jr." },
{ "Sr" , "Sr." },
{ "VI." , "VI" }
}
Definition at line 353 of file cleanup_author.cpp.