NCBI C++ ToolKit
Macros | Functions
pubdesc_editor.cpp File Reference
#include <ncbi_pch.hpp>
#include <gui/objutils/cmd_del_desc.hpp>
#include <gui/objutils/cmd_create_desc.hpp>
#include <gui/objutils/descriptor_change.hpp>
#include <gui/objutils/cmd_del_seq_feat.hpp>
#include <gui/objutils/cmd_change_seq_feat.hpp>
#include <objmgr/seqdesc_ci.hpp>
#include <objmgr/seq_entry_ci.hpp>
#include <objects/pubmed/Pubmed_entry.hpp>
#include <objects/medline/Medline_entry.hpp>
#include <objects/biblio/Cit_art.hpp>
#include <objects/submit/Submit_block.hpp>
#include <objects/submit/Seq_submit.hpp>
#include <objects/misc/sequence_macros.hpp>
#include <objtools/cleanup/cleanup_change.hpp>
#include <objtools/cleanup/capitalization_string.hpp>
#include <objtools/edit/publication_edit.hpp>
#include <objtools/edit/apply_object.hpp>
#include <gui/packages/pkg_sequence_edit/pubdesc_editor.hpp>
#include <gui/objutils/gui_eutils_client.hpp>
#include <gui/objutils/macro_fn_do.hpp>
#include <gui/objutils/macro_fn_pubfields.hpp>
+ Include dependency graph for pubdesc_editor.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define EXTRACTSUFFIXFROMINITIALS(OLD, NEW)
 
#define TRUNCATE_SPACES(o, x)
 
#define CLEAN_STRING_MEMBER(o, x)
 

Functions

 USING_SCOPE (objects)
 
static bool s_CleanVisString (string &str)
 
static bool s_FixNameCap (string &name, bool bApostrophes)
 

Macro Definition Documentation

◆ CLEAN_STRING_MEMBER

#define CLEAN_STRING_MEMBER (   o,
 
)
Value:
if ((o).IsSet##x()) { \
s_CleanVisString((o).Set##x()); \
if (NStr::IsBlank((o).Get##x())) { \
(o).Reset##x(); \
} \
}
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
Definition: ncbistr.cpp:106
const TYPE & Get(const CNamedParameterList *param)

Definition at line 591 of file pubdesc_editor.cpp.

◆ EXTRACTSUFFIXFROMINITIALS

#define EXTRACTSUFFIXFROMINITIALS (   OLD,
  NEW 
)
Value:
if( NStr::EndsWith(initials, OLD) ) { \
initials.resize( initials.length() - strlen(OLD) ); \
SET_FIELD(name, Suffix, 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.
Definition: ncbistr.hpp:5430

◆ TRUNCATE_SPACES

#define TRUNCATE_SPACES (   o,
 
)
Value:
if ((o).IsSet##x()) { \
if (NStr::IsBlank((o).Get##x())) { \
(o).Reset##x(); \
} \
}
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate spaces in a string (in-place)
Definition: ncbistr.cpp:3201

Definition at line 583 of file pubdesc_editor.cpp.

Function Documentation

◆ s_CleanVisString()

static bool s_CleanVisString ( string str)
static

Definition at line 485 of file pubdesc_editor.cpp.

References _ASSERT, copy(), and str().

◆ s_FixNameCap()

static bool s_FixNameCap ( string name,
bool  bApostrophes 
)
static

◆ USING_SCOPE()

USING_SCOPE ( objects  )
Modified on Wed May 22 11:31:44 2024 by modify_doxy.py rev. 669887