list management methods More...
Functions | |
def | normalize |
FUNCTIONS. More... | |
def | removeInvalidCharacter |
Remove all invalid character. More... | |
def | replaceSharpWithPadding |
Replace a list of # symbol with properly padded index. More... | |
list management methods
string management methods
This file is part of GEAR_mc. GEAR_mc is a fork of Jeremie Passerin's GEAR project. GEAR is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.html>. Author: Jeremie Passerin geerem@hotmail.com www.jeremiepasserin.com Fork Author: Miquel Campos hello@miqueltd.com www.miqueltd.com Date: 2013 / 08 / 16
def gear.string.normalize | ( | string | ) |
FUNCTIONS.
======================================================== Replace all invalid characters with "_"
string | String - A string to normalize. return String - Normalized string. |
def gear.string.removeInvalidCharacter | ( | string | ) |
Remove all invalid character.
string | String - A string to normalize. return String - Normalized string. |
def gear.string.replaceSharpWithPadding | ( | string, | |
index | |||
) |
Replace a list of # symbol with properly padded index.
(ie. count_### > count_001 )
string | String - A string to set. Should include '#' |
index | Integer - Index to replace. return String - Normalized string. |