示例#1
0
文件: TAG.cs 项目: minuJeong/PRAC
 /*
  * Return true if this contains the tag
  */
 public bool HasTag(TAG_TYPES tag)
 {
     int len = m_TagTypes.Length;
     for (int ii = 0; ii < len; ii++) {
         if (m_TagTypes [ii].Equals (tag)) {
             return true;
         }
     }
     return false;
 }
示例#2
0
文件: TAG.cs 项目: minuJeong/PRAC
 /*
  * Returns count of matching tags
  */
 public int HasTags(TAG_TYPES[] tags)
 {
     int contains_count = 0;
     int len_org = m_TagTypes.Length;
     int len_compare = tags.Length;
     for (int ii = 0; ii < len_org; ii++) {
         for (int ij = 0; ij < len_compare; ij++) {
             if (m_TagTypes [ii].Equals (tags [ij])) {
                 contains_count++;
             }
         }
     }
     return contains_count;
 }