libtld 1.2.0

tld_test_tld_names.cpp File Reference

#include "tld.h"
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <boost/algorithm/string.hpp>
#include <QtCore/QString>
Include dependency graph for tld_test_tld_names.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< std::string > string_vector_t

Functions

int main (int argc, char *argv[])
void test_load ()
void test_tlds ()
QString tld_encode (const QString &tld, int &level)
 Encode a URL.

Variables

int err_count = 0
string_vector_t tlds

Typedef Documentation

typedef std::vector<std::string> string_vector_t

Definition at line 38 of file tld_test_tld_names.cpp.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 201 of file tld_test_tld_names.cpp.

References err_count, test_load(), test_tlds(), and tld_version().

void test_load ( )

Definition at line 104 of file tld_test_tld_names.cpp.

References err_count, and tlds.

Referenced by main().

void test_tlds ( )

Definition at line 140 of file tld_test_tld_names.cpp.

References err_count, tld_info::f_tld, tld(), tld_encode(), TLD_RESULT_INVALID, TLD_RESULT_SUCCESS, and tlds.

Referenced by main().

QString tld_encode ( const QString &  tld,
int &  level 
)

This function transforms the characters in a valid URI string.

Definition at line 46 of file tld_test_tld_names.cpp.

Referenced by test_tlds().


Variable Documentation

int err_count = 0

Definition at line 29 of file tld_test_tld_names.cpp.

Definition at line 39 of file tld_test_tld_names.cpp.

Referenced by test_load(), and test_tlds().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

This document is part of the libtld Project.

Copyright by Made to Order Software Corp.