Panda3D
panda
src
downloader
httpDigestAuthorization.I
1
// Filename: httpDigestAuthorization.I
2
// Created by: drose (25Oct02)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
16
////////////////////////////////////////////////////////////////////
17
// Function: HTTPDigestAuthorization::hexdigit
18
// Access: Private, Static
19
// Description: Returns the ASCII character corresponding to the
20
// hexadecimal representation of the indicated value,
21
// which must be 0 <= value <= 15.
22
////////////////////////////////////////////////////////////////////
23
INLINE
char
HTTPDigestAuthorization::
24
hexdigit(
int
value) {
25
return
(value < 10) ? (value +
'0'
) : (value - 10 +
'a'
);
26
}
Generated on Wed May 17 2017 23:41:12 for Panda3D by
1.8.13