original_string: private static function _calendarDetail($locale, $list)
      {
          $ret = "001";
          foreach ($list as $key => $value) {
              if (strpos($locale, '_') !== false) {
                  $locale = substr($locale, strpos($locale, '_') + 1);
              }
              if (strpos($key, $locale) !== false) {
                  $ret = $key;
                  break;
              }
          }
          return $ret;
      }
code: private static function _calendarDetail($locale, $list)
      {
          $ret = "001";
          foreach ($list as $key => $value) {
              if (strpos($locale, '_') !== false) {
                  $locale = substr($locale, strpos($locale, '_') + 1);
              }
              if (strpos($key, $locale) !== false) {
                  $ret = $key;
                  break;
              }
          }
          return $ret;
      }
code_tokens: private static function _calendarDetail ( $ locale , $ list ) { $ ret = "001" ; foreach ( $ list as $ key => $ value ) { if ( strpos ( $ locale , '_' ) !== false ) { $ locale = substr ( $ locale , strpos ( $ locale , '_' ) + 1 ) ; } if ( strpos ( $ key , $ locale ) !== false ) { $ ret = $ key ; break ; } } return $ ret ; }
docstring: Find the details for supplemental calendar datas
  
  @param  string $locale Locale for Detaildata
  @param  array  $list   List to search
  @return string         Key for Detaildata
docstring_tokens: Find the details for supplemental calendar datas