您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetLineCount函数代码示例

51自学网 2021-06-01 21:10:05
  C++
这篇教程C++ GetLineCount函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GetLineCount函数的典型用法代码示例。如果您正苦于以下问题:C++ GetLineCount函数的具体用法?C++ GetLineCount怎么用?C++ GetLineCount使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GetLineCount函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: GetLineCount

int CxEdit::DeleteLine(int nLine, BOOL bScroll, int nCount /*= 1*/){   if (nCount >= 1)   {      const int linecount = GetLineCount();      const BOOL bFirstLine = (nLine == 0);      const BOOL bLastLine  = (nLine == (linecount - 1));      //TRACE("%i,%i,%i/n", LineIndex(nLine - 1), LineLength(nLine - 1), LineIndex(nLine));      const int nStartChar = (bLastLine && (!bFirstLine))          ? (LineIndex(nLine - 1) + LineLength(nLine - 1) + 0)          : LineIndex(nLine);      const int nEndChar   = ((nLine + nCount) >= linecount)          ? (LineIndex(linecount - 1) + LineLength(linecount - 1) + 0)         : LineIndex(nLine + nCount);      const BOOL bReadOnly = IsStyleReadOnly();      if (bReadOnly)      {         SetReadOnly(FALSE);      }      SetSel(nStartChar, nEndChar, !bScroll); // end of edit text      Clear();        // ..then delete      GotoEnd(bScroll);      if (bReadOnly)      {         SetReadOnly(TRUE);      }   }   return GetLineCount();}
开发者ID:burzumishi,项目名称:arnold,代码行数:32,


示例2: GetFirstVisibleLine

/*================CSyntaxRichEditCtrl::GetVisibleRange================*/CHARRANGE CSyntaxRichEditCtrl::GetVisibleRange(void) const{	RECT rectArea;	int firstLine, lastLine;	CHARRANGE range;	firstLine = GetFirstVisibleLine();	GetClientRect(&rectArea);	lastLine = firstLine + (rectArea.bottom / (defaultCharFormat.yHeight / 20));	if (lastLine >= GetLineCount()) {		lastLine = GetLineCount() - 1;	}	range.cpMin = LineIndex(firstLine);	if (range.cpMin < 0) {		range.cpMin = 0;	}	range.cpMax = LineIndex(lastLine);	if (range.cpMax == -1) {		range.cpMax = range.cpMin + LineLength(range.cpMin);	} else {		range.cpMax += LineLength(range.cpMax);	}	if (range.cpMax >= GetTextLength()) {		range.cpMax = GetTextLength() - 1;	}	return range;}
开发者ID:AreaScout,项目名称:dante-doom3-odroid,代码行数:39,


示例3: BeginUndoAction

void ScintillaWrapper::forEachLine(PyObject* function){	if (PyCallable_Check(function))	{			BeginUndoAction();				long lineCount = GetLineCount();		for(int line = 0; line < lineCount;)		{						boost::python::object result = boost::python::call<boost::python::object>(function, GetLine(line), line, lineCount);							if (result.is_none() || !PyInt_Check(result.ptr()))			{				++line;			}			else			{				line += PyInt_AsLong(result.ptr());			}						lineCount = GetLineCount();		}		EndUndoAction();	}}
开发者ID:juntalis,项目名称:PythonScript,代码行数:27,


示例4: GetLineCount

bool wxExTextFile::RunTool(){  if (!wxTextFile::Open(m_FileName.GetFullPath()))  {    return false;  }  m_Stats.m_Elements.Set(_("Files"), 1);  if (m_Tool.IsCount())  {    m_Stats.m_Elements.Inc(_("Total Size"), m_FileName.GetStat().st_size);    m_Stats.m_Elements.Inc(_("Lines"), GetLineCount());  }  if (GetLineCount() > 0)  {    if (!Parse())    {      Close();      return false;    }  }  if (m_Tool.IsStatisticsType())  {    if (m_Tool.GetId() == ID_TOOL_REPORT_KEYWORD)    {      if (!m_FileName.GetLexer().GetKeywordsString().empty())      {        IncActionsCompleted();      }    }    ReportStatistics();  }  if (m_Modified && !m_FileName.GetStat().IsReadOnly())  {    if (!Write())    {      Close();      return false;    }  }  Close();  return true;}
开发者ID:hugofvw,项目名称:wxExtension,代码行数:52,


示例5: pIndexOf

    int pIndexOf(const wxString& sSearch,                 bool bIncludeComments = false,                 int iStart = 0)    {        wxString sTest = sSearch;        sTest.MakeLower();#if defined(__INTEL_COMPILER) && 1 /* VDM auto patch */#   pragma ivdep#   pragma swp#   pragma unroll#   pragma prefetch#   if 0#       pragma simd noassert#   endif#endif /* VDM auto patch */        for(size_t i = iStart; i < GetLineCount(); i++)        {            wxString sLine = GetLine(i);            if(bIncludeComments || ! sLine.StartsWith(wxT("#")))            {                if(sLine.StartsWith(sTest))                    return (int)i;            }        }        return wxNOT_FOUND;    }
开发者ID:vdm113,项目名称:wxWidgets-ICC-patch,代码行数:26,


示例6: GetFont

void ZToolTip::SetBounds(void){	MFont* pFont = GetFont();	char szName[MWIDGET_NAME_LENGTH];	RemoveAnd(szName, m_bUseParentName==true?GetParent()->m_szName:m_szName);	int nWidth = pFont->GetWidthWithoutAmpersand(szName);	int nHeight = pFont->GetHeight();	int x, y;		GetPosAlignedWithParent(x, y, nWidth, nHeight);		// 
C++ GetLink函数代码示例
C++ GetLine函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。