#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string>
#include <curl/curl.h>
#include <libxml/HTMLparser.h>
Go to the source code of this file.
|
| static void | cdata (void *voidContext, const xmlChar *chars, int length) |
| |
| static void | Characters (void *voidContext, const xmlChar *chars, int length) |
| |
| static void | EndElement (void *voidContext, const xmlChar *name) |
| |
| static void | handleCharacters (Context *context, const xmlChar *chars, int length) |
| |
| static bool | init (CURL *&conn, char *url) |
| |
| int | main (int argc, char *argv[]) |
| |
| static void | parseHtml (const std::string &html, std::string &title) |
| |
| static void | StartElement (void *voidContext, const xmlChar *name, const xmlChar **attributes) |
| |
| static int | writer (char *data, size_t size, size_t nmemb, std::string *writerData) |
| |
◆ COMPARE
◆ cdata()
| static void cdata |
( |
void * |
voidContext, |
|
|
const xmlChar * |
chars, |
|
|
int |
length |
|
) |
| |
|
static |
◆ Characters()
| static void Characters |
( |
void * |
voidContext, |
|
|
const xmlChar * |
chars, |
|
|
int |
length |
|
) |
| |
|
static |
◆ EndElement()
| static void EndElement |
( |
void * |
voidContext, |
|
|
const xmlChar * |
name |
|
) |
| |
|
static |
◆ handleCharacters()
| static void handleCharacters |
( |
Context * |
context, |
|
|
const xmlChar * |
chars, |
|
|
int |
length |
|
) |
| |
|
static |
◆ init()
| static bool init |
( |
CURL *& |
conn, |
|
|
char * |
url |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ parseHtml()
| static void parseHtml |
( |
const std::string & |
html, |
|
|
std::string & |
title |
|
) |
| |
|
static |
◆ StartElement()
| static void StartElement |
( |
void * |
voidContext, |
|
|
const xmlChar * |
name, |
|
|
const xmlChar ** |
attributes |
|
) |
| |
|
static |
◆ writer()
| static int writer |
( |
char * |
data, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
std::string * |
writerData |
|
) |
| |
|
static |
◆ buffer
◆ errorBuffer
◆ saxHandler
| htmlSAXHandler saxHandler |
|
static |
Initial value:=
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}
Definition at line 203 of file htmltitle.cpp.