From 474aab1c941497ae8275289bb0d7e5a214faeb2f Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 28 Apr 2016 09:54:46 +1000 Subject: C++ 11 support built by default. --- doc/ScintillaDoc.html | 38 ++++++++++++++++++++++---------------- doc/ScintillaHistory.html | 11 +++++++++++ 2 files changed, 33 insertions(+), 16 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index f1e6c3a75..5edf0caec 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -623,8 +623,9 @@ struct Sci_TextRange {

The base regular expression support is limited and should only be used for simple cases and initial development. - When using a C++11 compliant compiler and runtime, it may be possible to use the - runtime's implementation of <regex> by compiling Scintilla with CXX11_REGEX defined. + The C++ runtime <regex> library may be used by setting the SCFIND_CXX11REGEX search flag. + When using an older C++ compiler that does not support C++11, this may be turned off by + compiling Scintilla with NO_CXX11_REGEX defined. A different regular expression library can be integrated into Scintilla or can be called from the container using direct access to the buffer contents through @@ -743,29 +744,32 @@ struct Sci_TextRange { SCFIND_REGEXP - The search string should be interpreted as a regular expression. + The search string should be interpreted as a regular expression. + Uses Scintilla's base implementation unless combined with SCFIND_CXX11REGEX. SCFIND_POSIX Treat regular expression in a more POSIX compatible manner - by interpreting bare ( and ) for tagged sections rather than \( and \). + by interpreting bare ( and ) for tagged sections rather than \( and \). + Has no effect when SCFIND_CXX11REGEX is set. - + SCFIND_CXX11REGEX - When compiled with CXX11_REGEX this flag - may be set to use <regex> instead of Scintilla's basic regular expressions. - If the regular expression is invalid then -1 is returned and status is set to - SC_STATUS_WARN_REGEX. - The ECMAScript flag is set on the regex object and UTF-8 documents will exhibit Unicode-compliant - behaviour. For MSVC, where wchar_t is 16-bits, the reular expression ".." will match a single - astral-plane character. There may be other differences between compilers. + This flag may be set to use C++11 <regex> instead of Scintilla's basic regular expressions. + If the regular expression is invalid then -1 is returned and status is set to + SC_STATUS_WARN_REGEX. + The ECMAScript flag is set on the regex object and UTF-8 documents will exhibit Unicode-compliant + behaviour. For MSVC, where wchar_t is 16-bits, the reular expression ".." will match a single + astral-plane character. There may be other differences between compilers. + Must also have SCFIND_REGEXP set. -

In a regular expression, special characters interpreted are:

+

In a regular expression, using Scintilla's base implementation, + special characters interpreted are:

@@ -860,6 +864,10 @@ struct Sci_TextRange {

Regular expressions will only match ranges within a single line, never matching over multiple lines.

+

When using SCFIND_CXX11REGEX more features are available, + generally similar to regular expression support in JavaScript. + See the documentation of your C++ runtime for details on what is supported.

+ SCI_FINDTEXT(int flags, Sci_TextToFind *ttf)
SCI_SEARCHANCHOR
@@ -1020,7 +1028,7 @@ struct Sci_TextToFind {
- + @@ -7579,8 +7587,6 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next SC_TECHNOLOGY_DIRECTWRITEDC values for SCI_SETTECHNOLOGY are provisional.

-

Using C++11 <regex> is provisional.

-

Some developers may want to only use features that are stable and have graduated from provisional status. To avoid using provisional messages compile with the symbol SCI_DISABLE_PROVISIONAL defined.

diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index be5490dd9..8a0f01f65 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -499,6 +499,17 @@ Icons Copyright(C) 1998 by Dean S. Jones
+

+ Release 3.6.6 +

+
    +
  • + Released 26 April 2016. +
  • +
  • + C++ 11 <regex> support built by default. Can be disabled by defining NO_CXX11_REGEX. +
  • +

Release 3.6.5

-- cgit v1.2.3
Generic failure
SC_STATUS_BADALLOC 2 Memory is exhausted