Back to index

lshw  02.16
Functions | Variables File Reference
#include "jedec.h"
#include "hw.h"
#include "osutils.h"
#include <regex.h>
#include <string>
#include <iostream>

Go to the source code of this file.


string jedec_resolve (const string &s)


static const char * jedec_id []

Function Documentation

string jedec_resolve ( const string &  s)

Definition at line 77 of file

  string result = hw::strip(s);

  if(matches(result, "^0x"))
    result.erase(0, 2);
  if(!matches(result, "^[0-9a-fA-F]+$")) return s;

  for(int i=0; jedec_id[i]; i+=2) {
    if(matches(result, "^" + string(jedec_id[i]), REG_ICASE)) return string(jedec_id[i+1]);

  return s;

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* jedec_id[] [static]

Definition at line 10 of file