#include "mbconfig.h"
#include "hint_impl.h"
Go to the source code of this file.
Definition at line 37 of file hint_impl.cc.
References STRLENOF.
Referenced by SimulationEntity::ParseHint().
39 if (strncasecmp(s,
"drive{",
STRLENOF(
"drive{")) == 0) {
42 size_t len = strlen(s);
44 if (s[len - 1] !=
'}') {
48 char *sDriveStr =
new char[len + 1];
49 memcpy(sDriveStr, s, len + 1);
50 sDriveStr[len - 1] =
';';
54 }
else if (strncasecmp(s,
"drive3{",
STRLENOF(
"drive3{")) == 0) {
57 size_t len = strlen(s);
59 if (s[len - 1] !=
'}') {
63 char *sDriveStr =
new char[len + 1];
64 memcpy(sDriveStr, s, len + 1);
65 sDriveStr[len - 1] =
';';
69 }
else if (strncasecmp(s,
"drive6{",
STRLENOF(
"drive6{")) == 0) {
72 size_t len = strlen(s);
74 if (s[len - 1] !=
'}') {
78 char *sDriveStr =
new char[len + 1];
79 memcpy(sDriveStr, s, len + 1);
80 sDriveStr[len - 1] =
';';