/home/koen/project/wt/public-git/wt/examples/gitmodel/Git.C File Reference

#include "Git.h"
#include <iostream>
#include <vector>
#include <stdio.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Functions

unsigned char fromHex (char b)
unsigned char fromHex (char msb, char lsb)
char toHex (unsigned char b)
void toHex (unsigned char b, char &msb, char &lsb)


Function Documentation

unsigned char @98::fromHex ( char  msb,
char  lsb 
) [static]

Definition at line 31 of file Git.C.

00032   {
00033     return (fromHex(msb) << 4) + fromHex(lsb);
00034   }

unsigned char @98::fromHex ( char  b  )  [static]

Definition at line 21 of file Git.C.

00022   {
00023     if (b <= '9')
00024       return b - '0';
00025     else if (b <= 'F')
00026       return (b - 'A') + 0x0A;
00027     else 
00028       return (b - 'a') + 0x0A;
00029   }

void @98::toHex ( unsigned char  b,
char &  msb,
char &  lsb 
) [static]

Definition at line 44 of file Git.C.

00045   {
00046     lsb = toHex(b & 0x0F);
00047     msb = toHex(b >> 4);
00048   }

char @98::toHex ( unsigned char  b  )  [static]

Definition at line 36 of file Git.C.

00037   {
00038     if (b < 0xA)
00039       return '0' + b;
00040     else
00041       return 'a' + (b - 0xA);
00042   }


Variable Documentation

std::string content_

Definition at line 125 of file Git.C.

unsigned int idx_

Definition at line 126 of file Git.C.

int status_

Definition at line 127 of file Git.C.


Generated on Tue Nov 3 15:34:40 2009 for Wt by doxygen 1.5.6