Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/graph/node_xml.cpp
| Show All 10 Lines | |||||
| * distributed under the License is distributed on an "AS IS" BASIS, | * distributed under the License is distributed on an "AS IS" BASIS, | ||||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "graph/node_xml.h" | #include "graph/node_xml.h" | ||||
| #include "util/util_foreach.h" | #include "util/foreach.h" | ||||
| #include "util/util_string.h" | #include "util/string.h" | ||||
| #include "util/util_transform.h" | #include "util/transform.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| static bool xml_read_boolean(const char *value) | static bool xml_read_boolean(const char *value) | ||||
| { | { | ||||
| return string_iequals(value, "true") || (atoi(value) != 0); | return string_iequals(value, "true") || (atoi(value) != 0); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 403 Lines • Show Last 20 Lines | |||||