Skip to content
Permalink
Browse files

Better dox, spelling

  • Loading branch information
nyalldawson committed May 31, 2018
1 parent f7a6864 commit 32792d3409979969d0cfe5f04fbdfcb5a3809aa4
Showing with 10 additions and 4 deletions.
  1. +5 −2 python/core/auto_generated/qgsstringutils.sip.in
  2. +5 −2 src/core/qgsstringutils.h
@@ -191,8 +191,11 @@ Converts a string by applying capitalization rules to the string.

static QString ampersandEncode( const QString &string );
%Docstring
Replaces any extended unicode characters with the XML style é encoded versions
of these characeters.
Makes a raw string safe for inclusion as a HTML/XML string literal.

This includes replacing '<' with '&lt;', '>' with '&gt;', '&' with '&amp', and
any extended unicode characters with the XML style &#233; encoded versions
of these characters.

.. versionadded:: 3.2
%End
@@ -201,8 +201,11 @@ class CORE_EXPORT QgsStringUtils
static QString capitalize( const QString &string, Capitalization capitalization );

/**
* Replaces any extended unicode characters with the XML style &#233; encoded versions
* of these characeters.
* Makes a raw string safe for inclusion as a HTML/XML string literal.
*
* This includes replacing '<' with '&lt;', '>' with '&gt;', '&' with '&amp', and
* any extended unicode characters with the XML style &#233; encoded versions
* of these characters.
* \since QGIS 3.2
*/
static QString ampersandEncode( const QString &string );

0 comments on commit 32792d3

Please sign in to comment.
You can’t perform that action at this time.