A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/diff_8hpp_source.html below:

NCBI C++ ToolKit: include/util/diff/diff.hpp Source File

1 #ifndef UTIL___DIFF__HPP 2 #define UTIL___DIFF__HPP 83

:

first

(p1), second(p2) {}

98  bool IsInsert

(

void

)

const

{

return

m_Operation == eInsert; }

99  bool IsDelete

(

void

)

const

{

return

m_Operation == eDelete; }

135 

SPos GetOffset(

void

)

const

;

148 

SPos GetLine(

void

)

const

;

159  void

SetLength(size_type length);

160  void

SetOffset(SPos

offset

);

161  void

SetLine(SPos line);

190  typedef

list<CDiffOperation>

TList

;

203 

size_type GetEditDistance(

void

)

const

;

219  CTempString

GetLongestCommonSubstring(

void

)

const

;

225  void

CleanupAndMerge(

void

);

246  void

CalculateOffsets(

void

);

250  const

TList& GetList(

void

)

const

;

266  void

x_CleanupAndMerge_Equities(

void

);

273  bool

x_CleanupAndMerge_SingleEdits(

void

);

304  bool

IsTimeoutExpired()

const

;

344 

fCalculateOffsets = 1 << 1

395 

fCalculateOffsets = 1 << 1,

462  unsigned int

num_common_lines = 3);

479  virtual const char

* GetErrCodeString(

void

)

const override

;

499  return

(diff_op.

m_Operation

== this->m_Operation) &&

566  if

(

str

.length()) {

580  if

(

str

.length()) {

CDiffBase – Diff and compare texts (base class)

CDiffList – the list of diff operations.

CDiffOperation – The storage class for one diff operation.

CDiffText – Diff and compare texts (line mode)

CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...

CTimeout – Timeout interval.

Include a standard set of the NCBI C++ Toolkit most basic headers.

bool operator==(const CEquivRange &A, const CEquivRange &B)

std::ofstream out("events_result.xml")

main entry point for tests

static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)

static const char * str(char *buf, int n)

size_type GetLength(void) const

Get string length.

bool operator!=(const CDiffOperation &diff_op) const

CDeadline * m_Deadline

Deadline for processing (NULL if not set)

void Prepend(CDiffOperation::EType operation, CTempString str)

Add element to the front of the list.

EType GetOperation() const

Get type of operation.

size_type m_Length

The real length of the m_String (including EOL, if it was truncated in line-mode diff)

unsigned int TFlags

Bitwise OR of "Flags".

bool IsInsert(void) const

Check type of operation.

unsigned int TFlags

Bitwise OR of "EFlags".

SPos GetLine(void) const

Get line number of the current difference (line-mode diff only).

SPos m_Line

Line numbers of the current diff (or NPOS) – line-mode only.

void Clear(void)

Remove all elements from the list.

void Reset(void)

Reset internal state and prepare to next Diff()

SPos(size_type p1=NPOS, size_type p2=NPOS)

size_type second

Position in second (result) string.

void Append(CDiffOperation::EType operation, CTempString str)

Add element to the end of the list.

void SetTimeout(const CTimeout &tmo)

Set timeout.

vector< CTempString > TDiffHalfMatchList

Five element array for the list of strings, returned by x_DiffHalfMatch()

bool IsTimeoutExpired() const

Check if timeout is expired.

void SetString(CTempString str, size_type len=NPOS)

CDiffList m_Diffs

The list of differences from the last diff.

list< CDiffOperation > TList

Storage class type for the list of diff operations.

void SetOperation(EType operation)

CDiffOperation::size_type size_type

Size type definition.

SPos m_Offset

The offsets of the current string in the original string (or NPOS)

TList m_List

List of the differences.

SPos GetOffset(void) const

Get offset of the current difference in the original text.

CDiffOperation::size_type size_type

Type definition.

EType m_Operation

Type of the current diff operation.

NCBI_EXCEPTION_DEFAULT(CDiffException, CException)

void SetOffset(SPos offset)

EType

Type of the current diff operation.

CTimeout m_Timeout

Relative timeout for processing.

CDiffList(void)

Constructor.

const TList & GetList(void) const

Get list of the diff operations as list<>.

bool IsDelete(void) const

CTempString m_String

The string associated with this diff operation.

void SetLength(size_type length)

bool operator==(const CDiffOperation &diff_op) const

Compare substrings and operation types only, all other attributes (offset, row, col and etc) are not ...

size_type first

Position in first (original) string.

CDiffBase(void)

Constructor.

CTempString GetString(void) const

Get string for current operation.

@ eEqual

String exists in both texts.

@ eDelete

String that exists in old text, and deleted in new one.

EErrCode

Error types that an application can generate.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

bool operator!=(const CNCBI_IPAddr &lhs, unsigned int rhs)

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

bool IsExpired(void) const

Check if the deadline is expired.

operation

Bit operations.

Defines: CTimeFormat - storage class for time format.

NCBI_XUTIL_EXPORT

Parameter to control printing diagnostic message about conversion of static array data from a differe...

Structure to save offset/length in the compared strings.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4