merge with master
[platform/framework/web/wrt-plugins-common.git] / src / modules / tizen / Filesystem / NodeFilterMatcher.cpp
index 254be88..d85f4f0 100644 (file)
@@ -23,7 +23,6 @@
 
 namespace WrtDeviceApis {
 namespace Filesystem {
-
 using namespace Api;
 
 bool NodeFilterMatcher::match(const INodePtr& value,
@@ -36,19 +35,22 @@ bool NodeFilterMatcher::match(const INodePtr& value,
 
         if (!matchRange(value->getCreated(),
                         filter->getMinCreated(),
-                        filter->getMaxCreated())) {
+                        filter->getMaxCreated()))
+        {
             return false;
         }
 
         if (!matchRange(value->getModified(),
                         filter->getMinModified(),
-                        filter->getMaxModified())) {
+                        filter->getMaxModified()))
+        {
             return false;
         }
 
         if (!matchRange(value->getSize(),
                         filter->getMinSize(),
-                        filter->getMaxSize())) {
+                        filter->getMaxSize()))
+        {
             return false;
         }
     }
@@ -56,7 +58,7 @@ bool NodeFilterMatcher::match(const INodePtr& value,
 }
 
 bool NodeFilterMatcher::matchString(const std::string& value,
-        const OptionalString& filter)
+                                    const OptionalString& filter)
 {
     if (!filter.IsNull()) {
         return pcrecpp::RE(*filter).PartialMatch(value);
@@ -66,15 +68,15 @@ bool NodeFilterMatcher::matchString(const std::string& value,
 
 template<typename Type>
 bool NodeFilterMatcher::matchRange(const Type& value,
-        const DPL::Optional<Type>& min,
-        const DPL::Optional<Type>& max)
+                                   const DPL::Optional<Type>& min,
+                                   const DPL::Optional<Type>& max)
 {
     if ((!min.IsNull() && (value < *min)) ||
-        (!max.IsNull() && (value > *max))) {
+        (!max.IsNull() && (value > *max)))
+    {
         return false;
     }
     return true;
 }
-
 } // Filesystem
 } // WrtDeviceApis