gecosistema_lite/strings.py
def split(text, sep=" ", glue="'", removeEmpty=False):
    """
    split - a variant of split with glue characters
    """
    res = []
    word = ""
    dontsplit = False
    for j in range(0, len(text)):
        c = text[j]
        if c in glue:
            dontsplit = not dontsplit
        if c in sep and not dontsplit:
            res.append(word)
            word = ""
        else:
            word += c

    if not removeEmpty or len(word.strip()) > 0:
        res.append(word)

    return res

    split - a variant of split with glue characters
    
a variant of split with glue characters
a variant of split with glue characters
def split(text, sep=" ", glue="'", removeEmpty=False):
    res = []
    word = ""
    dontsplit = False
    for j in range(0, len(text)):
        c = text[j]
        if c in glue:
            dontsplit = not dontsplit
        if c in sep and not dontsplit:
            res.append(word)
            word = ""
        else:
            word += c
    if not removeEmpty or len(word.strip()) > 0:
        res.append(word)
    return res
def split ( text , sep = " " , glue = "'" , removeEmpty = False ) : res = [ ] word = "" dontsplit = False for j in range ( 0 , len ( text ) ) : c = text [ j ] if c in glue : dontsplit = not dontsplit if c in sep and not dontsplit : res . append ( word ) word = "" else : word += c if not removeEmpty or len ( word . strip ( ) ) > 0 : res . append ( word ) return res
split - a variant of split with glue characters
split - a variant of split with glue characters
"""
    split - a variant of split with glue characters
    """
text
sep
glue
removeEmpty