original_docstring: Returns GL-type extension string of a extension flag.
docstring: Returns GL-type extension string of a extension flag.
docstring_tokens: Returns GL - type extension string of a extension flag .
code: def ToGLExtensionString(extension_flag):
    """Returns GL-type extension string of a extension flag."""
    if extension_flag == "oes_compressed_etc1_rgb8_texture":
      return "OES_compressed_ETC1_RGB8_texture" # Fixup inconsitency with rgb8,
                                                # unfortunate.
    uppercase_words = [ 'img', 'ext', 'arb', 'chromium', 'oes', 'amd', 'bgra8888',
                        'egl', 'atc', 'etc1', 'angle']
    parts = extension_flag.split('_')
    return "_".join(
      [part.upper() if part in uppercase_words else part for part in parts])
code_tokens: def ToGLExtensionString ( extension_flag ) : if extension_flag == "oes_compressed_etc1_rgb8_texture" : return "OES_compressed_ETC1_RGB8_texture" uppercase_words = [ 'img' , 'ext' , 'arb' , 'chromium' , 'oes' , 'amd' , 'bgra8888' , 'egl' , 'atc' , 'etc1' , 'angle' ] parts = extension_flag . split ( '_' ) return "_" . join ( [ part . upper ( ) if part in uppercase_words else part for part in parts ] )
short_docstring: Returns GL-type extension string of a extension flag.
short_docstring_tokens: Returns GL - type extension string of a extension flag .
comment: """Returns GL-type extension string of a extension flag."""$SEP$# Fixup inconsitency with rgb8,$SEP$# unfortunate.