-2
A
回答
6
!thisString->EndsWith("String");
2
不完全確定你的意思是「相反」,但有一個StartsWith方法。或者,如果您正在查找它是否與您無法結束,則可能會否定EndsWith返回的值。希望這有幫助,並且我正確理解了這個問題。
0
詳細:
if (thisString->EndsWith("String") == false)
{
// does not end with
}
簡潔:
if (!thisString->EndsWith("String"))
{
// ditto
}
1
你必須詳細說明你的問題了一下,我的朋友。
無論您正在尋找:
StartsWith("string");
^指字符串的開頭
或
!thisString->EndsWith("string");
^你會用它來檢查,如果字符串沒有結束與「字符串」
相關問題
- 1. 的PostgreSQL從的endsWith
- 2. NSPredicate的endsWith多個文件
- 3. EndsWith意外的行爲
- 4. Python endswith()反向?
- 5. String EndsWith(alphabet); C#
- 6. AttributeError:'TarFile'對象沒有屬性'endswith'
- 7. AttributeError:'NoneType'對象沒有屬性'endswith'
- 8. 'NoneType' 對象有沒有屬性 '的endsWith',Django的,蟒蛇
- 9. 居中文本里面的相對>絕對>相對div
- 10. FitNesse的RowFixture:包含,startsWith,的endsWith
- 11. 的Python(2.6.6)的endsWith()在for循環
- 12. pyvisa錯誤:「名單」對象有沒有屬性「的endsWith」
- 13. SCRIPT438:對象不支持屬性或方法「的endsWith」在IE10
- 14. basename或endswith在awk中?
- 15. EndsWith()無法正常工作
- 16. 創建StartsWith,的endsWith LINQ表達式和包含傳遞一個表達<Func鍵<T, string>>
- 17. Django Tincymce,AttributeError:'NoneType'對象沒有屬性'endswith'
- 18. os.walk(目錄) - AttributeError:'元組'對象沒有屬性'endswith'
- 19. Openerp8啓動錯誤:AttributeError:'布爾'對象沒有屬性'endswith'
- 20. Django-Filebrowser:獲取AttributeError:'NoneType'對象沒有屬性'endswith'
- 21. 查找字符串與BeginsWith和EndsWith
- 22. 如何在字符串上實現「EndsWith」?
- 23. 對齊<dl><dt><dd>到頁面的中心
- 24. Ç - >的malloc - >對dlsym
- 25. Java endsWith()不按預期工作
- 26. Java:使用OR運算符.endsWith
- 27. 使用endswith與多個擴展
- 28. 最佳呼叫或者StartsWith /的endsWith的方式有條件
- 29. Object.toString() - > [對象的對象]
- 30. php>數組處理:良好的面向對象的庫?
在代碼中使用像「與......相反」的術語是一個非常糟糕的主意。這就像非程序員說「和」時他們的意思是「或」,等等。 – Armentage 2010-05-05 04:10:52
當然是,而不是對立面? – Rajesh45 2010-05-05 04:22:00
你的問題根本不清楚。好的評論Armentage – GuruC 2011-03-28 12:48:56