~ubuntu-branches/ubuntu/trusty/lshw/trusty

« back to all changes in this revision

Viewing changes to src/core/osutils.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2008-06-19 17:35:08 UTC
  • mfrom: (1.1.7 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080619173508-661hjngqxww5z0oq
Tags: 02.13-2ubuntu1
* Merge from debian unstable, remaining changes:
  - 10-cap-detection.dpatch: fixes hang when reading capabilities of some
    PCI devies (LP: 202460; needs-to-goto-debian)
  - Set maintainer to Ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <string>
5
5
#include <vector>
6
6
#include <sys/types.h>
 
7
#include <stdint.h>
7
8
 
8
9
bool pushd(const std::string & dir = "");
9
10
std::string popd();
26
27
std::string uppercase(const std::string &);
27
28
std::string lowercase(const std::string &);
28
29
std::string tostring(unsigned long long);
 
30
std::string tohex(unsigned long long);
29
31
std::string utf8(wchar_t);
30
32
std::string utf8_sanitize(const std::string &);
31
33
std::string utf8(uint16_t *s, size_t length = -1, bool forcelittleendian = false);
43
45
 
44
46
int selectdir(const struct dirent *d);
45
47
int selectlink(const struct dirent *d);
 
48
int selectfile(const struct dirent *d);
46
49
 
47
50
unsigned short be_short(const void *);
48
51
unsigned short le_short(const void *);