Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(52)  |  Call(52)  |  Derive(0)  |  Import(0)
This function returns a copy of word, translating
all occurrences of each character in find to the
corresponding character in replace

src/s/u/Sublime-Text-2-Plugins---Settings-HEAD/plugins/SublimeCodeIntel/libs/inflector/Rules/Spanish.py   Sublime-Text-2-Plugins---Settings(Download)
                if re.match('\|', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
                match = re.search('(?i)([aeiou]).{1,3}([aeiou])nes$',result)
 
                if re.match('~', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
 

src/s/u/SublimeText2-Config-HEAD/Packages/SublimeCodeIntel/libs/inflector/Rules/Spanish.py   SublimeText2-Config(Download)
                if re.match('\|', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
                match = re.search('(?i)([aeiou]).{1,3}([aeiou])nes$',result)
 
                if re.match('~', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
 

src/s/u/sublime-text-2-packages-HEAD/SublimeCodeIntel/libs/inflector/Rules/Spanish.py   sublime-text-2-packages(Download)
                if re.match('\|', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
                match = re.search('(?i)([aeiou]).{1,3}([aeiou])nes$',result)
 
                if re.match('~', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
 

src/f/e/FED-Sublime-Settings-HEAD/SublimeCodeIntel/libs/inflector/Rules/Spanish.py   FED-Sublime-Settings(Download)
                    for k in range(1, len(groups)):
                        replacement = replacement.replace(u"|" + str(k), self.string_replace(
                            groups[k - 1], u"ÁÉÍÓÚáéíóú", u"AEIOUaeiou"))
 
                result = re.sub(rules[rule][0], replacement, word)
                if match and len(match.groups()) > 1 and not re.search(u"(?i)[áéíóú]", word):
                    result = result.replace(match.group(0), self.string_replace(
                        match.group(1), u"AEIOUaeiou", u"ÁÉÍÓÚáéíóú") + match.group(0)[1:])
 
                return result
                    for k in range(1, len(groups)):
                        replacement = replacement.replace(u"~" + str(
                            k), self.string_replace(groups[k - 1], u"AEIOUaeiou", u"ÁÉÍÓÚáéíóú"))
 
                result = re.sub(rules[rule][0], replacement, word)
                if match and len(match.groups()) > 1 and not re.search(u"(?i)[áéíóú]", word):
                    result = self.string_replace(
                        result, u"ÁÉÍÓÚáéíóú", u"AEIOUaeiou")
 
                return result

src/s/u/SublimeCodeIntel-HEAD/libs/inflector/Rules/Spanish.py   SublimeCodeIntel(Download)
                    for k in range(1, len(groups)):
                        replacement = replacement.replace(u"|" + str(k), self.string_replace(
                            groups[k - 1], u"ÁÉÍÓÚáéíóú", u"AEIOUaeiou"))
 
                result = re.sub(rules[rule][0], replacement, word)
                if match and len(match.groups()) > 1 and not re.search(u"(?i)[áéíóú]", word):
                    result = result.replace(match.group(0), self.string_replace(
                        match.group(1), u"AEIOUaeiou", u"ÁÉÍÓÚáéíóú") + match.group(0)[1:])
 
                return result
                    for k in range(1, len(groups)):
                        replacement = replacement.replace(u"~" + str(
                            k), self.string_replace(groups[k - 1], u"AEIOUaeiou", u"ÁÉÍÓÚáéíóú"))
 
                result = re.sub(rules[rule][0], replacement, word)
                if match and len(match.groups()) > 1 and not re.search(u"(?i)[áéíóú]", word):
                    result = self.string_replace(
                        result, u"ÁÉÍÓÚáéíóú", u"AEIOUaeiou")
 
                return result

src/t/w/twistar-1.3/BermiInflector/Rules/Spanish.py   twistar(Download)
                if re.match('\|', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
                match = re.search('(?i)([aeiou]).{1,3}([aeiou])nes$',result)
 
                if re.match('~', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
 

src/t/w/twistar-HEAD/BermiInflector/Rules/Spanish.py   twistar(Download)
                if re.match('\|', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)
                match = re.search('(?i)([aeiou]).{1,3}([aeiou])nes$',result)
 
                if re.match('~', replacement) :
                    for k in range(1, len(groups)) :
 
                result = re.sub(rules[rule][0], replacement, word)