<HTML>
<HEAD>
<link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY>
<TITLE>mqc_isNoteExistent</TITLE>
<H1>mqc_isNoteExistent</H1><H4>Synopsis</H4><PRE><FONT COLOR = blue>Defun: mqc_isNoteExistent(
       String, $search_text,
       Boolean, $case_sensitive,
       Name, $match_type,
       Name ( $entity_type, NOTE ),
       String ( $entity_name, "" ),
       Boolean ( $support_multi?, true ),
       String ( $connect_string, " " ) )
@{...} Any;

</FONT></PRE><PRE STYLE=\"text-align : left;\" CLASS=\"Code\">

<B>Description:</B>
Judge if the note with specified text existent in part or not.
This routine supports both multiple line note or single line note,
but ignore MARK_EMBEDDED and CLOSE_MARK_EMBEDDED control characters
and their enclosing character size.
Definition in kf_mqc_drafting_notes.c:

<B>Input Arguments:</B>
search_text - The input string to be searched
case_sensitive - Case sensitive comparison or not
match_type - Perform exact matching or pattern matching (regular expression). Can be EXACT or PATTERN
entity_type - Entity selection mask, can be GROUP or NOTE. Default is NOTE
entity_name - Object name. Apply to all objects with $entity_type if name is not specified. Default is ""
support_multi? - Search string in multiple lines note or not
connect_string - Connect the multiple line note into one string using this parameter. Default is " "

<B>Returns:</B>
Search result status
1 - find search string
0 - not find search string
-1 - error detected

<B>Example:</B> In part, there is 2 multiple line notes like:
            Note 1                 Note 2
      This is a multi-         This is the other multi
      ple note, and this       ple note, and this is
      is the third line.       the third line.
      It has a name            It has a name Note 2,
      Note 1, but is not       and it is in the group
      the group member.        Note Group.
 search...     case?...  match_type ent_type  ent_name   mult?...  connect...  |  Status
 Arg1          Arg2      Arg3       (Arg4)    (Arg5)     (Arg6)    (Arg7)      |    Ret
 ---+
 Note 1        True      EXACT      GROUP     -          -         -           |  0
 Note 1        True      EXACT      GROUP     "Notes Gr" -         -           |  0
 Note 1        True      EXACT      -         -          -         -           |  1
 Note 1        True      EXACT      -         "Note 1"   -         -           |  1
 Note 1        True      EXACT      -         "Note 2"   -         -           |  0
 Note 2        True      EXACT      GROUP     -          -         -           |  1
 Note 2        True      EXACT      GROUP     "Notes Gr" -         -           |  0
 Note 2        True      EXACT      -         -          -         -           |  1
 Note 2        True      EXACT      -         "Note 1"   -         -           |  0
 Note 2        True      EXACT      -         "Note 2"   -         -           |  1
 *this is a*   true      PATTERN    -         -          -         -           |  0
 *this is a*   false     PATTERN    -         -          -         -           |  1
 *this is the* true      PATTERN    -         -          false     -           |  0
 *This is an*  false     PATTERN    -         -          -         "@"         |  0
 *This*an*     false     PATTERN    -         -          false     -           |  1
 *This*the*    false     PATTERN    -         -          -         -           |  1

<B>See Also:</B>
</PRE></FONT></PRE>
<p class=EndLine>&nbsp;</p>
<p class=blank>&nbsp;</p>
</BODY>
</HTML>
