<HTML>
<HEAD>
<link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY>
<TITLE>mqc_is_note_existent</TITLE>
<H1>mqc_is_note_existent</H1><H4>Synopsis</H4><PRE><FONT COLOR = blue>Defun: mqc_is_note_existent(
       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\">
DesignLogic=no
FunctionBuilder=no

<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:</B>
    (String) search_text      - The input string to be searched.
    (Boolean)case_sensitive   - Case sensitive comparison or not.
    (Name)   matching_type    - Perform exact matching or pattern
                                matching (regular expression), can be
                                EXACT or PATTERN.
    (Name)   entity_type      - Entity selection mask, can be
                                GROUP or NOTE. Default is NOTE.
    (String) entity_name      - Object name. Apply to all objects with
                                $entity_type if name is not specified.
                                Default is "".
    (Boolean)support_multi?   - If search multiple line note.
                                    True   - Search multiple line note
                                    False  - Only search single line note
                                Default is true.
                                If this argument is false, Please refer
                                function KF_mqc_check_notes_existence.
    (String) connect_string   - Only used when $support_multi?=true,
                                Connect the multiple line note
                                into a string with this parameter.
                                Default is " ".

<B>Input Arguments:</B>
search_text
case_sensitive
match_type
entity_type
entity_name
support_multi?
connect_string

<B>Returns:</B>
Status    -   1 - found it
              0 - not found
             -1 - error detected
For example: 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
Note:
    The function is replaced by mqc_isNoteExistent.

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