google/appengine/util/string_util.php
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
\google\appengine\util\StringUtil
Methods
base64UrlDecode
(string $input)
: string
Name | Type | Description |
---|---|---|
$input | string |
The url safe Base64 encoded string. |
Type | Description |
---|---|
string | The original string which may not be url safe. |
base64UrlEncode
(string $input)
: string
Name | Type | Description |
---|---|---|
$input | string |
The string which may not be url safe. |
Type | Description |
---|---|
string | A Base64 encoded url safe string. |
endsWith
(string $input, string $suffix)
: boolean
Return true if the first paramater contains the second parameter at the end.
Name | Type | Description |
---|---|---|
$input | string |
The input string which may contain the suffix. |
$suffix | string |
The string to look for at the end of the input. |
Type | Description |
---|---|
boolean | <code>true</code> iff the input contains the suffix at the end. |
startsWith
(string $input, string $prefix)
: boolean
Name | Type | Description |
---|---|---|
$input | string |
The string which may contain the prefix at the start. |
$prefix | string |
The string to look for at the start of the input. |
Type | Description |
---|---|
boolean | <code>true</code> iff the input contains the prefix at the start. |