@@ -19,13 +19,13 @@ create or replace package body ut_annotation_parser as
1919 ------------------------------
2020 --private definitions
2121
22- type tt_comment_list is table of varchar2(32767) index by pls_integer ;
22+ type tt_comment_list is table of varchar2(32767) index by binary_integer ;
2323
2424 gc_annotation_qualifier constant varchar2(1) := '%';
2525 gc_annot_comment_pattern constant varchar2(30) := '^( |'||chr(09)||')*-- *('||gc_annotation_qualifier||'.*?)$'; -- chr(09) is a tab character
2626 gc_comment_replacer_patter constant varchar2(50) := '{COMMENT#%N%}';
2727 gc_comment_replacer_regex_ptrn constant varchar2(25) := '{COMMENT#(\d+)}';
28- gc_regexp_identifier constant varchar2(50) := '[a-z ][a-z0 -9#_$]*';
28+ gc_regexp_identifier constant varchar2(50) := '[a-zA-Z ][a-zA-Z0 -9#_$]*';
2929 gc_annotation_block_pattern constant varchar2(200) := '(({COMMENT#.+}'||chr(10)||')+)( |'||chr(09)||')*(procedure|function)\s+(' ||
3030 gc_regexp_identifier || ')';
3131 gc_annotation_pattern constant varchar2(50) := gc_annotation_qualifier || gc_regexp_identifier || '[ '||chr(9)||']*(\(.*?\)\s*?$)?';
@@ -46,10 +46,7 @@ create or replace package body ut_annotation_parser as
4646 if l_annotation_str is not null then
4747
4848 -- get the annotation name and it's parameters if present
49- l_annotation_name := lower(regexp_substr(l_annotation_str
50- ,'%(' || gc_regexp_identifier || ')'
51- ,modifier => 'i'
52- ,subexpression => 1));
49+ l_annotation_name := lower(regexp_substr(l_annotation_str ,'%(' || gc_regexp_identifier || ')', subexpression => 1));
5350 l_annotation_text := trim(regexp_substr(l_annotation_str, '\((.*?)\)\s*$', subexpression => 1));
5451
5552 a_annotations.extend;
@@ -59,7 +56,7 @@ create or replace package body ut_annotation_parser as
5956 end;
6057
6158 procedure delete_processed_comments( a_comments in out nocopy tt_comment_list, a_annotations ut_annotations ) is
62- l_loop_index pls_integer := 1;
59+ l_loop_index binary_integer := 1;
6360 begin
6461 l_loop_index := a_annotations.first;
6562 while l_loop_index is not null loop
@@ -74,8 +71,8 @@ create or replace package body ut_annotation_parser as
7471 a_comments tt_comment_list,
7572 a_subobject_name varchar2 := null
7673 ) is
77- l_loop_index pls_integer := 1;
78- l_annotation_index pls_integer ;
74+ l_loop_index binary_integer := 1;
75+ l_annotation_index binary_integer ;
7976 begin
8077 -- loop while there are unprocessed comment blocks
8178 while 0 != nvl(regexp_instr(srcstr => a_source
0 commit comments