# Path: pywinauto/win32defines.py
# SS_NOPREFIX = 128 # Variable c_long


    import sets
from pywinauto.win32defines import SS_NOPREFIX
        if pos == -1 or pos == len(text):
            return (-1, '')

        # One found but was prededed by non valid hotkey character
        # so continue, as that can't be a shortcut
        if text[pos - 1] == '&':
            curEnd = pos - 2
            continue

        # 2 ampersands in a row - so skip
        # the 1st one and continue
        return (pos, text[pos+1])



#-----------------------------------------------------------------------------
def _SetAsString(settojoin):
    "Convert the set to a ordered string"
    return "".join(sorted(settojoin))


#-----------------------------------------------------------------------------
def ImplementsHotkey(win):
    "checks whether a control interprets & character to be a hotkey"

    # buttons always implement hotkey
    if win.Class() == "Button":
        return True

    # Statics do if they don't have SS_NOPREFIX style

# Path: pywinauto/win32defines.py
# SS_NOPREFIX = 128 # Variable c_long


# Path: pywinauto/tests/repeatedhotkey.py
    import sets
from pywinauto.win32defines import SS_NOPREFIX

        if pos == -1 or pos == len(text):
            return (-1, '')

        # One found but was prededed by non valid hotkey character
        # so continue, as that can't be a shortcut
        if text[pos - 1] == '&':
            curEnd = pos - 2
            continue

        # 2 ampersands in a row - so skip
        # the 1st one and continue
        return (pos, text[pos+1])



#-----------------------------------------------------------------------------
def _SetAsString(settojoin):
    "Convert the set to a ordered string"
    return "".join(sorted(settojoin))


#-----------------------------------------------------------------------------
def ImplementsHotkey(win):
    "checks whether a control interprets & character to be a hotkey"

    # buttons always implement hotkey
    if win.Class() == "Button":
        return True

    # Statics do if they don't have SS_NOPREFIX style

    elif win.Class() == "Static" and not win.HasStyle(SS_NOPREFIX):