/home/koen/project/wt/public-git/wt/examples/gitmodel/Git.C File Reference
#include "Git.h"
#include <iostream>
#include <vector>
#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 @87::fromHex |
( |
char |
msb, |
|
|
char |
lsb | |
|
) |
| | [static] |
Definition at line 29 of file Git.C.
unsigned char @87::fromHex |
( |
char |
b |
) |
[static] |
Definition at line 19 of file Git.C.
00020 {
00021 if (b <= '9')
00022 return b - '0';
00023 else if (b <= 'F')
00024 return (b - 'A') + 0x0A;
00025 else
00026 return (b - 'a') + 0x0A;
00027 }
void @87::toHex |
( |
unsigned char |
b, |
|
|
char & |
msb, |
|
|
char & |
lsb | |
|
) |
| | [static] |
Definition at line 42 of file Git.C.
00043 {
00044 lsb = toHex(b & 0x0F);
00045 msb = toHex(b >> 4);
00046 }
char @87::toHex |
( |
unsigned char |
b |
) |
[static] |
Definition at line 34 of file Git.C.
00035 {
00036 if (b < 0xA)
00037 return '0' + b;
00038 else
00039 return 'a' + (b - 0xA);
00040 }
Variable Documentation