비교적 복잡하며 +and andor 공간 등을 포함한 다양한 논리적 문자를 지원할 수 있으며 필요에 따라 추가 할 수 있습니다. 조건에 따라 검색 할 테이블을 선택할 수 있으며 속도가 최적화되었으며 이는 매우 빠르다고 할 수 있습니다. 물론, 이전에 작성 되었기 때문에 많은 문제가 있습니다. 거의 모든 SQLServer 기능은 커서 (레코드 세트 페이지 매김) 등과 같은 저장된 절차에 사용됩니다. 좋아, 더 이상 자랑하지 말고 프로그램을 직접보십시오.
ASP 기능
코드 사본은 다음과 같습니다.
functionanalysekeyword (a_strsource)
dimm_strdest, m_intloop
dimm_intbeginpos, m_intendpos
dimm_strhead, m_strmiddle, m_strail
m_strdest = a_strsource
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
'먼저 끝에 공간을 제거하십시오
m_strdest = ltrim (rtrim (m_strdest))
+, -, 공백으로 '&,'및 등을 대체하십시오
m_strdest = replace (m_strdest, "&", "+")
m_strdest = replace (m_strdest, "및", "+")
m_strdest = replace (m_strdest, "또는", chr (32))
m_strdest = replace (m_strdest, "not", "-")
'변수를 초기화하여 다음 루프를 이동하십시오
m_intbeginpos = 1
dowhilem_intbeginpos <> 0
m_intbeginpos = inst (m_strdest, chr (32))
ifm_intbeginpos <> 0then'if 공간이 발견됩니다
m_stread = rtrim (ltrim (왼쪽 (m_strdest, m_intbeginpos))))))
CallPrint ( "[anyalsekeyword ()] : 프로세스 공간 m_strhead ="+m_strhead)
m_strail = rtrim (ltrim (오른쪽 (m_strdest, len (m_strdest) -m_intbeginpos))))))
CallPrint ( "[AnalyseKeyword ()] : 프로세스 공간 m_strail ="+m_strail)