Changeset 14692 for trunk/FACT++
- Timestamp:
- 11/25/12 12:57:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14691 r14692 1563 1563 if (args.Length()==2 && args[1]->IsString()) 1564 1564 { 1565 char *arg = *String::AsciiValue(args[1]); 1566 transform(arg, arg+strlen(arg), arg, ::tolower); 1567 1568 const string str = Tools::Trim(arg); 1569 if (str==string("horizon").substr(0, str.length())) 1565 string arg(Tools::Trim(*String::AsciiValue(args[1]))); 1566 transform(arg.begin(), arg.end(), arg.begin(), ::tolower); 1567 1568 if (arg==string("horizon").substr(0, arg.length())) 1570 1569 hrz = LN_SOLAR_STANDART_HORIZON; 1571 if ( str==string("civil").substr(0, str.length()))1570 if (arg==string("civil").substr(0, arg.length())) 1572 1571 hrz = LN_SOLAR_CIVIL_HORIZON; 1573 if ( str==string("nautical").substr(0, str.length()))1572 if (arg==string("nautical").substr(0, arg.length())) 1574 1573 hrz = LN_SOLAR_NAUTIC_HORIZON; 1575 if ( str==string("astronomical").substr(0, str.length()))1574 if (arg==string("astronomical").substr(0, arg.length())) 1576 1575 hrz = LN_SOLAR_ASTRONOMICAL_HORIZON; 1577 1576 }
Note:
See TracChangeset
for help on using the changeset viewer.