r51267 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51266‎ | r51267 | r51268 >
Date:00:51, 1 June 2009
Author:aude
Status:ok
Tags:
Comment:
fix spelling in code comments for r50997
Modified paths:
  • /trunk/extensions/ParserFunctions/ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions.php
@@ -617,7 +617,7 @@
618618 /**
619619 * {{#pos: string | needle | offset}}
620620 *
621 - * Finds first occurence of "needle" in "string" starting at "offset".
 621+ * Finds first occurrence of "needle" in "string" starting at "offset".
622622 *
623623 * Note: If the needle is an empty string, single space is used instead.
624624 * Note: If the needle is not found, -1 is returned.
@@ -646,7 +646,7 @@
647647 /**
648648 * {{#rpos: string | needle}}
649649 *
650 - * Finds last occurence of "needle" in "string".
 650+ * Finds last occurrence of "needle" in "string".
651651 *
652652 * Note: If the needle is an empty string, single space is used instead.
653653 * Note: If the needle is not found, -1 is returned.
@@ -707,7 +707,7 @@
708708 /**
709709 * {{#count: string | substr }}
710710 *
711 - * Returns number of occurences of "substr" in "string".
 711+ * Returns number of occurrences of "substr" in "string".
712712 *
713713 * Note: If "substr" is empty, a single space is used.
714714 */
@@ -734,7 +734,7 @@
735735 /**
736736 * {{#replace:string | from | to | limit }}
737737 *
738 - * Replaces each occurence of "from" in "string" with "to".
 738+ * Replaces each occurrence of "from" in "string" with "to".
739739 * At most "limit" replacements are performed.
740740 *
741741 * Note: Armored against replacements that would generate huge strings.
@@ -791,7 +791,7 @@
792792 /**
793793 * {{#explode:string | delimiter | position}}
794794 *
795 - * Breaks "string" into chunks seperated by "delimiter" and returns the
 795+ * Breaks "string" into chunks separated by "delimiter" and returns the
796796 * chunk identified by "position".
797797 *
798798 * Note: Negative position can be used to specify tokens from the end.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50997(Bug 6455) Add string function support to ParserFunctionsrarohde00:43, 26 May 2009

Status & tagging log