gumbo-parser-0.10.1/000077500000000000000000000000001252056746100142045ustar00rootroot00000000000000gumbo-parser-0.10.1/.clang-format000066400000000000000000000036611252056746100165650ustar00rootroot00000000000000--- Language: Cpp # BasedOnStyle: Google AccessModifierOffset: -1 AlignAfterOpenBracket: false AlignEscapedNewlinesLeft: true AlignOperands: true AlignTrailingComments: true AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true AllowShortFunctionsOnASingleLine: All AlwaysBreakAfterDefinitionReturnType: false AlwaysBreakTemplateDeclarations: true AlwaysBreakBeforeMultilineStrings: true BreakBeforeBinaryOperators: None BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false BinPackParameters: true BinPackArguments: true ColumnLimit: 80 ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth: 4 DerivePointerAlignment: true ExperimentalAutoDetectBinPacking: false IndentCaseLabels: true IndentWrappedFunctionNames: false IndentFunctionDeclarationAfterType: false MaxEmptyLinesToKeep: 1 KeepEmptyLinesAtTheStartOfBlocks: false NamespaceIndentation: None ObjCBlockIndentWidth: 2 ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: false PenaltyBreakBeforeFirstCallParameter: 1 PenaltyBreakComment: 300 PenaltyBreakString: 1000 PenaltyBreakFirstLessLess: 120 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 200 PointerAlignment: Left SpacesBeforeTrailingComments: 2 Cpp11BracedListStyle: true Standard: Auto IndentWidth: 2 TabWidth: 8 UseTab: Never BreakBeforeBraces: Attach SpacesInParentheses: false SpacesInSquareBrackets: false SpacesInAngles: false SpaceInEmptyParentheses: false SpacesInCStyleCastParentheses: false SpaceAfterCStyleCast: true SpacesInContainerLiterals: true SpaceBeforeAssignmentOperators: true ContinuationIndentWidth: 4 CommentPragmas: '^ IWYU pragma:' ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] SpaceBeforeParens: ControlStatements DisableFormat: false ... gumbo-parser-0.10.1/.gitignore000066400000000000000000000015561252056746100162030ustar00rootroot00000000000000# Compilation artifacts *.o *.lo *.la # Editor swap files *.swp *.swo *.swn #emacs editor leftovers *.*~ #diff leftovers *.orig # gtest pieces gtest gtest-1.7.0 # Other build artifacts /Debug /visualc/Debug /visualc/Release /visualc/gumbo.sdf /visualc/gumbo.opensdf /build .log .sdf .opensdf .deps .dirstamp .libs Makefile Makefile.in aclocal.m4 autom4te.cache compile config.guess config.log config.status config.sub configure depcomp gumbo.pc gumbo_test gumbo_test.log gumbo_test.trs install-sh libtool ltmain.sh m4/ missing test-driver test-suite.log # gyp android artifacts gumbo_parser.target.mk # `make dist` artifacts /gumbo-[0-9].[0-9].tar.gz /gumbo-[0-9].[0-9]/ # Python dist artifacts *.pyc *.dylib dist build python/gumbo.egg-info python/gumbo/libgumbo.so # Example binaries benchmark clean_text find_links get_title positions_of_class prettyprint serialize gumbo-parser-0.10.1/.gitmodules000066400000000000000000000003261252056746100163620ustar00rootroot00000000000000[submodule "third_party/gtest"] path = third_party/gtest url = https://chromium.googlesource.com/external/googletest/ [submodule "testdata"] path = testdata url = https://github.com/html5lib/html5lib-tests.git gumbo-parser-0.10.1/.travis.yml000066400000000000000000000012001252056746100163060ustar00rootroot00000000000000language: c++ compiler: - gcc - clang os: - linux - osx install: - wget 'https://googletest.googlecode.com/files/gtest-1.7.0.zip' - unzip gtest-1.7.0.zip - ln -s gtest-1.7.0 gtest - sudo pip install BeautifulSoup - sudo pip install html5lib==0.95 script: - ./autogen.sh && ./configure && make && make check - python python/gumbo/gumboc_test.py - python python/gumbo/html5lib_adapter_test.py - python python/gumbo/soup_adapter_test.py - sudo make install - g++ examples/clean_text.cc `pkg-config --cflags --libs gumbo` - sudo python setup.py sdist install - python -c 'import gumbo; gumbo.parse("Foo")' gumbo-parser-0.10.1/CHANGES.md000066400000000000000000000050671252056746100156060ustar00rootroot00000000000000Gumbo 0.10.1 (2015-04-30) Same as 0.10.0, but with the version number bumped because the last version-number commit to v0.9.4 makes GitHub think that v0.9.4 is the latest version and so it's not highlighted on the webpage. Gumbo 0.10.0 (2015-04-30) * Full support for