Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: fHasShall
Topic Summary:
Created On: 15-Sep-2008 22:22
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 15-Sep-2008 22:22
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Attached find the code I use for function 'fHasShall' and its overloaded cousins. It determines if text/buffer/object/attrRef contains 'shall'.

Since the purpose of this function is to look for the word 'shall' used in a normal sentence, I was wondering about my regular expression. I think I need to look for the WORD 'shall' not just the string 'shall'. Specifically, I want the following sentence to be excluded: Text with the word "shall" are requirements.

Perhaps these 'shalls' must be preceeded by a space:
Regexp cl_reHasShall = regexp " [sS][hH][aA][lL][lL]"

Perhaps these 'shalls' must be followed by a space:
Regexp cl_reHasShall = regexp "[sS][hH][aA][lL][lL] "


What do you guys think?

- Louie
Report this to a Moderator Report this to a Moderator
 16-Sep-2008 00:25
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

.

Edited: 16-Sep-2008 at 00:34 by ron lewis
Report this to a Moderator Report this to a Moderator
 17-Sep-2008 14:32
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

I go with the space, I found it gave fewer false calls.
The only one I usually get is where some one has ...shall: before a list.

Of course you do the same for 'must' .
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.