projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'CRM-14696-v2' of https://github.com/JKingsnorth/civicrm-core into CRM...
[civicrm-core.git]
/
CRM
/
Utils
/
String.php
diff --git
a/CRM/Utils/String.php
b/CRM/Utils/String.php
index 79f4f7af05b24113d01c1a4aa35617e44eb0243a..c435cd7a7b739a0acb784595c66725356bc64606 100644
(file)
--- a/
CRM/Utils/String.php
+++ b/
CRM/Utils/String.php
@@
-75,7
+75,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
g
iven a string, replace all non alpha numeric characters and
+ *
G
iven a string, replace all non alpha numeric characters and
* spaces with the replacement character
*
* @param string $name the name to be worked on
* spaces with the replacement character
*
* @param string $name the name to be worked on
@@
-103,7
+103,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
c
onvert possibly underscore separated words to camel case with special handling for 'UF'
+ *
C
onvert possibly underscore separated words to camel case with special handling for 'UF'
* e.g
* membership_payment returns MembershipPayment
* @param string $string
* e.g
* membership_payment returns MembershipPayment
* @param string $string
@@
-139,7
+139,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
t
akes a string and returns the last tuple of the string.
+ *
T
akes a string and returns the last tuple of the string.
* useful while converting file names to class names etc
*
* @param string $string the input string
* useful while converting file names to class names etc
*
* @param string $string the input string
@@
-161,7
+161,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
a
ppends a name to a string and seperated by delimiter.
+ *
A
ppends a name to a string and seperated by delimiter.
* does the right thing for an empty string
*
* @param string $str the string to be appended to
* does the right thing for an empty string
*
* @param string $str the string to be appended to
@@
-201,7
+201,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
d
etermine if the string is composed only of ascii characters
+ *
D
etermine if the string is composed only of ascii characters
*
* @param string $str input string
* @param boolean $utf8 attempt utf8 match on failure (default yes)
*
* @param string $str input string
* @param boolean $utf8 attempt utf8 match on failure (default yes)
@@
-243,7
+243,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
d
etermine the string replacements for redaction
+ *
D
etermine the string replacements for redaction
* on the basis of the regular expressions
*
* @param string $str input string
* on the basis of the regular expressions
*
* @param string $str input string
@@
-333,7
+333,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
d
etermine if two href's are equivalent (fuzzy match)
+ *
D
etermine if two href's are equivalent (fuzzy match)
*
* @param string $url1 the first url to be matched
* @param string $url2 the second url to be matched against
*
* @param string $url1 the first url to be matched
* @param string $url2 the second url to be matched against
@@
-358,7
+358,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
Function to e
xtract variable values
+ *
E
xtract variable values
*
* @param mix $query this is basically url
*
*
* @param mix $query this is basically url
*
@@
-383,7
+383,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
t
ranslate a true/false/yes/no string to a 0 or 1 value
+ *
T
ranslate a true/false/yes/no string to a 0 or 1 value
*
* @param string $str the string to be translated
*
*
* @param string $str the string to be translated
*
@@
-403,7
+403,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
r
eturns string '1' for a true/yes/1 string, and '0' for no/false/0 else returns false
+ *
R
eturns string '1' for a true/yes/1 string, and '0' for no/false/0 else returns false
*
* @param string $str the string to be translated
*
*
* @param string $str the string to be translated
*
@@
-447,7
+447,7
@@
class CRM_Utils_String {
/**
* @param $string
/**
* @param $string
- * @param $params
+ * @param
array
$params
*/
static function extractName($string, &$params) {
$name = trim($string);
*/
static function extractName($string, &$params) {
$name = trim($string);
@@
-541,7
+541,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
s
trip leading, trailing, double spaces from string
+ *
S
trip leading, trailing, double spaces from string
* used for postal/greeting/addressee
*
* @param string $string input string to be cleaned
* used for postal/greeting/addressee
*
* @param string $string input string to be cleaned
@@
-682,7
+682,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
t
his function will mask part of the the user portion of an Email address (everything before the @)
+ *
T
his function will mask part of the the user portion of an Email address (everything before the @)
*
* @param string $email the email address to be masked
* @param string $maskChar the character used for masking
*
* @param string $email the email address to be masked
* @param string $maskChar the character used for masking
@@
-704,7
+704,7
@@
class CRM_Utils_String {
}
/**
}
/**
- *
t
his function compares two strings
+ *
T
his function compares two strings
*
* @param string $strOne string one
* @param string $strTwo string two
*
* @param string $strOne string one
* @param string $strTwo string two