#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) |
|
static void cdata |
( |
void * |
voidContext, |
|
|
const xmlChar * |
chars, |
|
|
int |
length |
|
) |
| |
|
static |
static void Characters |
( |
void * |
voidContext, |
|
|
const xmlChar * |
chars, |
|
|
int |
length |
|
) |
| |
|
static |
static void EndElement |
( |
void * |
voidContext, |
|
|
const xmlChar * |
name |
|
) |
| |
|
static |
static void handleCharacters |
( |
Context * |
context, |
|
|
const xmlChar * |
chars, |
|
|
int |
length |
|
) |
| |
|
static |
static bool init |
( |
CURL *& |
conn, |
|
|
char * |
url |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
static void parseHtml |
( |
const std::string & |
html, |
|
|
std::string & |
title |
|
) |
| |
|
static |
static void StartElement |
( |
void * |
voidContext, |
|
|
const xmlChar * |
name, |
|
|
const xmlChar ** |
attributes |
|
) |
| |
|
static |
static int writer |
( |
char * |
data, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
std::string * |
writerData |
|
) |
| |
|
static |
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
}
static void StartElement(void *voidContext, const xmlChar *name, const xmlChar **attributes)
static void cdata(void *voidContext, const xmlChar *chars, int length)
static void EndElement(void *voidContext, const xmlChar *name)
static void Characters(void *voidContext, const xmlChar *chars, int length)
Definition at line 203 of file htmltitle.cpp.