Python strop.lowercase() Examples

The following are 30 code examples of strop.lowercase(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module strop , or try the search function .
Example #1
Source File: string.py    From RevitBatchProcessor with GNU General Public License v3.0 5 votes vote down vote up
def replace(s, old, new, maxreplace=-1):
    """replace (str, old, new[, maxreplace]) -> string

    Return a copy of string str with all occurrences of substring
    old replaced by new. If the optional argument maxreplace is
    given, only the first maxreplace occurrences are replaced.

    """
    return s.replace(old, new, maxreplace)


# Try importing optional built-in module "strop" -- if it exists,
# it redefines some string operations that are 100-1000 times faster.
# It also defines values for whitespace, lowercase and uppercase
# that match <ctype.h>'s definitions. 
Example #2
Source File: string.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def replace(s, old, new, maxreplace=-1):
    """replace (str, old, new[, maxreplace]) -> string

    Return a copy of string str with all occurrences of substring
    old replaced by new. If the optional argument maxreplace is
    given, only the first maxreplace occurrences are replaced.

    """
    return s.replace(old, new, maxreplace)


# Try importing optional built-in module "strop" -- if it exists,
# it redefines some string operations that are 100-1000 times faster.
# It also defines values for whitespace, lowercase and uppercase
# that match <ctype.h>'s definitions. 
Example #3
Source File: string.py    From canape with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #4
Source File: string.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #5
Source File: test_strop.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def test_data_attributes(self):
        strop.lowercase
        strop.uppercase
        strop.whitespace 
Example #6
Source File: string.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #7
Source File: string.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #8
Source File: stringold.py    From canape with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #9
Source File: stringold.py    From canape with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #10
Source File: string.py    From canape with GNU General Public License v3.0 5 votes vote down vote up
def replace(s, old, new, maxreplace=-1):
    """replace (str, old, new[, maxreplace]) -> string

    Return a copy of string str with all occurrences of substring
    old replaced by new. If the optional argument maxreplace is
    given, only the first maxreplace occurrences are replaced.

    """
    return s.replace(old, new, maxreplace)


# Try importing optional built-in module "strop" -- if it exists,
# it redefines some string operations that are 100-1000 times faster.
# It also defines values for whitespace, lowercase and uppercase
# that match <ctype.h>'s definitions. 
Example #11
Source File: string.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #12
Source File: string.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #13
Source File: string.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #14
Source File: stringold.py    From RevitBatchProcessor with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #15
Source File: stringold.py    From RevitBatchProcessor with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #16
Source File: string.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def replace(s, old, new, maxreplace=-1):
    """replace (str, old, new[, maxreplace]) -> string

    Return a copy of string str with all occurrences of substring
    old replaced by new. If the optional argument maxreplace is
    given, only the first maxreplace occurrences are replaced.

    """
    return s.replace(old, new, maxreplace)


# Try importing optional built-in module "strop" -- if it exists,
# it redefines some string operations that are 100-1000 times faster.
# It also defines values for whitespace, lowercase and uppercase
# that match <ctype.h>'s definitions. 
Example #17
Source File: string.py    From RevitBatchProcessor with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #18
Source File: string.py    From RevitBatchProcessor with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #19
Source File: test_strop.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def test_data_attributes(self):
        strop.lowercase
        strop.uppercase
        strop.whitespace 
Example #20
Source File: string.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #21
Source File: string.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #22
Source File: string.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def replace(s, old, new, maxreplace=-1):
    """replace (str, old, new[, maxreplace]) -> string

    Return a copy of string str with all occurrences of substring
    old replaced by new. If the optional argument maxreplace is
    given, only the first maxreplace occurrences are replaced.

    """
    return s.replace(old, new, maxreplace)


# Try importing optional built-in module "strop" -- if it exists,
# it redefines some string operations that are 100-1000 times faster.
# It also defines values for whitespace, lowercase and uppercase
# that match <ctype.h>'s definitions. 
Example #23
Source File: string.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #24
Source File: string.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #25
Source File: test_strop.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def test_data_attributes(self):
        strop.lowercase
        strop.uppercase
        strop.whitespace 
Example #26
Source File: string.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def replace(s, old, new, maxsplit=-1):
    """replace (str, old, new[, maxsplit]) -> string

    Return a copy of string str with all occurrences of substring
    old replaced by new. If the optional argument maxsplit is
    given, only the first maxsplit occurrences are replaced.

    """
    return s.replace(old, new, maxsplit)


# Try importing optional built-in module "strop" -- if it exists,
# it redefines some string operations that are 100-1000 times faster.
# It also defines values for whitespace, lowercase and uppercase
# that match <ctype.h>'s definitions. 
Example #27
Source File: string.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #28
Source File: string.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE 
Example #29
Source File: stringold.py    From Splunking-Crime with GNU Affero General Public License v3.0 5 votes vote down vote up
def swapcase(s):
    """swapcase(s) -> string

    Return a copy of the string s with upper case characters
    converted to lowercase and vice versa.

    """
    return s.swapcase()

# Strip leading and trailing tabs and spaces 
Example #30
Source File: stringold.py    From Splunking-Crime with GNU Affero General Public License v3.0 5 votes vote down vote up
def lower(s):
    """lower(s) -> string

    Return a copy of the string s converted to lowercase.

    """
    return s.lower()

# Convert lower case letters to UPPER CASE