Formatting
This commit is contained in:
		
							parent
							
								
									53b9f8e4a3
								
							
						
					
					
						commit
						dbd64f4545
					
				
					 1 changed files with 12 additions and 12 deletions
				
			
		|  | @ -4,24 +4,24 @@ | ||||||
| #include <string> | #include <string> | ||||||
| 
 | 
 | ||||||
| class Editor { | class Editor { | ||||||
| public: |   public: | ||||||
|     using size_type = std::string::size_type; |     using size_type = std::string::size_type; | ||||||
| 	/* Creates a text editor containing the text t */ |     /* Creates a text editor containing the text t */ | ||||||
| 	Editor(const std::string& t) : text(t) {} |     Editor(const std::string &t) : text(t) {} | ||||||
| 
 | 
 | ||||||
|     /* Get the size of the current contents */ |     /* Get the size of the current contents */ | ||||||
|     size_type get_size() const; |     size_type get_size() const; | ||||||
| 
 | 
 | ||||||
| 	/*
 |     /*
 | ||||||
| 	 * Text[pos] contains a right parentheses. Returns the position of |      * Text[pos] contains a right parentheses. Returns the position of | ||||||
| 	 * the corresponding left parentheses, or string::npos if there |      * the corresponding left parentheses, or string::npos if there | ||||||
| 	 * is no match. |      * is no match. | ||||||
| 	 */ |      */ | ||||||
| 	size_type find_left_par(size_type pos) const; |     size_type find_left_par(size_type pos) const; | ||||||
| 
 | 
 | ||||||
| 	 // ... functions to edit the text (insert and delete characters)
 |     // ... functions to edit the text (insert and delete characters)
 | ||||||
| private: |   private: | ||||||
| 	std::string text; |     std::string text; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus